Skip to content

Instantly share code, notes, and snippets.

@wibbia
Created June 18, 2015 13:22
Show Gist options
  • Save wibbia/1e089a307d75a65503c9 to your computer and use it in GitHub Desktop.
Save wibbia/1e089a307d75a65503c9 to your computer and use it in GitHub Desktop.
Running = True
while Running:
number = input("Number: ")
x = 0
for munb in list(number):
x += 1
print(munb)
if munb != "0" and munb != "1":
print("Only 1 and 0")
else:
print(x, len(list(number)))
if x == len(list(number)):
Running = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment