Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def countToTen(valueParm):
- if type(valueParm) is int and valueParm !=None:
- if valueParm < 10:
- while valueParm < 10:
- if valueParm < 10:
- valueParm += 1
- print valueParm
- print ("Done counting")
- return
- else:
- print("That number is larger than 10.")
- else:
- print ("Invalid Parameter")
- return
- myParm = raw_input("Enter a number to count to ten from: ")
- if myParm.isdigit():
- countToTen(int(myParm))
- else:
- print("Not a digit")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement