Advertisement
dmemsm

Задача 5

Dec 15th, 2024 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. a = ""
  2. n = input()
  3. while n != ".":
  4.     a += n
  5.     n = input()
  6.  
  7. print(int(a, base=2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement