Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- num = int(raw_input("Enter number: "))
- step = 10
- count = 1
- while step <= num:
- step *= 10
- count += 1
- print "Length is %d digits" % count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement