Loading...

Go Back

Finish
Go Back Course Outline

Python Full Course


Try Practices Questions

1. Calculate the Total Price of Items in a Shopping Cart: Write a Python function that takes a list of prices and calculates the total price, including a 5% tax.

2. Find the Area of a Rectangle: Write a Python program that takes the length and width of a rectangle and returns its area.

3. Convert Celsius to Fahrenheit: Write a Python function that converts a given temperature from Celsius to Fahrenheit.

4. Check if a Number is Even or Odd: Write a Python program that checks whether a given number is even or odd.

5. Calculate the Perimeter of a Circle: Write a Python function that takes the radius of a circle and returns its perimeter (circumference).

6. Count the Number of Vowels in a String: Write a Python program that takes a string and counts how many vowels (a, e, i, o, u) are in the string.

7. Create a Simple Calculator: Write a Python program that performs basic arithmetic operations: addition, subtraction, multiplication, and division based on user input.

8. Calculate the Average of Numbers: Write a Python function that takes a list of numbers and returns their average.

9. Convert Kilometers to Miles: Write a Python program that converts a given distance in kilometers to miles.

10. Create a Simple Countdown Timer: Write a Python program that counts down from a given number of seconds to zero, displaying each second.

11. Check if a Word is a Palindrome: Write a Python function that checks if a given word is a palindrome (a word that reads the same backward and forward).

12. Print the Multiplication Table: Write a Python program that prints the multiplication table for a given number (e.g., for 5, print 5x1, 5x2, ..., 5x10).

13. Find the Largest of Three Numbers: Write a Python program that takes three numbers as input and prints the largest one.

14. Convert Minutes to Seconds: Write a Python program that converts a given number of minutes to seconds.

15. Create a Simple Interest Calculator: Write a Python function that calculates simple interest based on principal, rate of interest, and time (years).
Go Back

Finish