Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def numberToText(n):
- if n == 1:
- return "one"
- elif n == 2:
- return "two"
- elif n == 3:
- return "three"
- elif n == 4:
- return "four"
- elif n == 5:
- return "five"
- elif n == 6:
- return "six"
- elif n == 7:
- return "seven"
- elif n == 8:
- return "eight"
- elif n == 9:
- return "nine"
- elif n == 10:
- return "ten"
- 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