Python Projects for Kids
上QQ阅读APP看书,第一时间看更新

Going the extra mile

So, if you really want to understand all of this, go the extra mile! Experiment with the code that you just created so that you can see what works and what does not work. If you get a strange error, you can always copy and paste the error into an Internet search engine; most of the errors we've taken a look at so far have happened to other people. Here are some tips to help you experiment and gain mastery:

  • Change the input question
  • Change the message to the user
  • Change the function name
  • Change the variable name
  • Add a second variable and a second input question
  • Add the second variable to the output question