Python Challenge – 3.1 Exercises

Python Challenge – Exercises

For each of the following, determine the IPO, create a flowchart algorithm and create and test the Python code. Save each.

  1. Write a program that takes input in Celsius and converts it to Fahrenheit. Ensure the input is read as a float, and the result is displayed with two decimal places.
  2. Ask the user for their age and score in the theory test. If the user is 16 years or older and scored a minimum of 24 out of 30 in their theory test, output “Able to obtain a learner’s permit”, otherwise output “You do not qualify for a learner’s permit at this time”.
  3. A program is required to input a range of scores until 999 entered – determine the total, max, min of those entered.
  4. Create a game code snippet to add experience points and deduct health points from a battle while the character survives. Add to re-spawn the player or quit when then the character “dies”.
  1. Implement the Quiz Game Program code at: https://youtu.be/zehwgTB0vV8?si=vjTGu5YFOGTj3xpr.
  2. Implement the Concession Stand Program code at: https://youtu.be/PbkIzW_70EI?si=jj9jZY2pXe-8GF0Y
  1. Create an app with a function InchesToMillimeters, which will convert inches to millimeters.
    Note: Conversion: 1 inch = 25.4 millimeters
  2. Number Guessing Game with Functions
    Implement a number guessing game where the computer generates a random number between 1 and 100, and the user has to guess it. Use functions to modularize your code and provide feedback to the user on whether their guess is too high, too low, or correct.

Implement the Quiz Game Program code at: https://youtu.be/8aW3tkIul-8?si=LMA2Yc4QBrHV5R7S