To remind you, the base code came from the end of Chapter 1 in our textbook. Please note the changes that are required for Python 3 such as print ( "..." ) needs parenthesis, and your input( ) line must have int( ) around it (see my example)
Edit your code as follows:
- The guessing range is much larger, between 1 and 300 or so.
- The number of guesses is larger, instead of 6 guesses, make it 10 or 12.
- The game character is no longer a pirate, change him/her to something else
1) download your .py file from your Drive
2) open it using IDLE (you can also open IDLE first, then select
File-> open)
3) ReSave your new program as GuessingGameV2 (standing for
version 2)
4) put your new .py file back in your homework folder on google
drive.
Good luck my programming peeps
No comments:
Post a Comment