Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # bronze
- def count():
- for i in range(1,11):
- print(i)
- count()
- # silver
- def count(a,b):
- for i in range(a,b+1):
- print(i)
- count(5,15)
- # gold
- def numberToText(n):
- names = ["one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"]
- name = names[int(n) -1]
- return name
- def count(a,b):
- for i in range(a,b+1):
- print(numberToText(i))
- count(5,10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement