0% found this document useful (0 votes)
2 views1 page

Python Advanced

The document contains a series of Python homework practice questions designed to enhance programming skills. It includes tasks such as creating a shopping list, repeating a name, counting down, checking temperature, generating a multiplication table, and simulating a pet store game. Each task involves user input and basic programming concepts like loops and conditionals.

Uploaded by

muhammad khubaib
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Python Advanced

The document contains a series of Python homework practice questions designed to enhance programming skills. It includes tasks such as creating a shopping list, repeating a name, counting down, checking temperature, generating a multiplication table, and simulating a pet store game. Each task involves user input and basic programming concepts like loops and conditionals.

Uploaded by

muhammad khubaib
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like