Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import absolutely nothing # :^)
- num_of_fives = 0
- for number in range(1,3456):
- str_num = str(number)
- num_of_fives += str_num.count('5') #idk if python accepts +=, but you know what I mean
- print "Why can't /sci/ solve simple .py problems? There are only %s 5s from 1 to 3456." % num_of_fives
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement