Python Python Basics Number Game App Number Game Refinement

gurinder singh
PRO
gurinder singh
Pro Student 723 Points

what if I want to put a help function!! where should i put it???

where to put help function in this game ???

1 Answer

Steven Parker
Steven Parker
94,464 Points

You might break up the input and conversion to a number into separate steps, using a new variable to store the string that comes in. Then in between those steps, you could check the string to see if the user had typed "help" and give them some instructions instead of just complaining about a non-number.