Question: this is a python 2 question def int to word (i): word = # Fill your code here, use as many new lines you

this is a python 2 questionthis is a python 2 question def int to word (i): word

def int to word (i): word = "" # Fill your code here, use as many new lines you like. Delete this line. # you will get a zero if this method doesn't return a string ####################### return word print "Enter an integer from 1 to 99:" S = raw_input(). try: a = int(s) if a 99: print("This method only works for integers from 1 to 99") else: print("The given number in words:") print (word) except: print ("Method only works for integers") Expected outcome: >> Python 96.py Enter an integer from 1 to 99: >> 10 "The given number in words: Ten >> python 96.py Enter an integer from 1 to 99: >> 101 This method only works for integers from 1 to 99 >> python 96.py Enter an integer from 1 to 99: >> yaw Method only works for integers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!