Python Homework Practice Questions
1. Shopping List
- Ask the user to enter 3 items for a shopping list (one by one).
- Store them in a list.
– Ask if he wants to remove some item. Input that item and remove that
- Ask to finalize the list. Print the final shopping list.
2. Name Repeater
- Ask the user for their name and a number.
- Print their name that many times using a loop.
3. Countdown
- Ask the user for a starting number.
- Count down to 0 using a loop.
- Print “Blast off!” at the end.
4. Temperature Checker
- Ask for the temperature in Celsius.
- If it’s below 10, print “It’s cold!”
- If it’s between 10 and 25, print “It’s nice!”
- If it’s above 25, print “It’s hot!”
5. Multiplication Table
- Ask for a number and print its multiplication table from 1 to 10.
6. Pet Store Game
- Create a list of pets and let the user “buy” one.
- Remove it from the list.
- Show the updated list of pets.