10 Entry‑Level Python Questions to Solve

ANSWER Attached. Never look until you finish trying all questions at least 1 hour before giving up.

 

1. Print Your Name

Write a program that prints your name on the screen.

 

2. Add Two Numbers

Ask the user for two numbers and print their sum.

 

3. Area of a Rectangle

Input:

  • Length
  • Width

Output:

  • Area = length × width

 

4. Check Positive or Negative

Ask the user for a number and print:

  • “Positive”
  • “Negative”
  • “Zero”

 

5. Find the Largest of Three Numbers

Take three numbers as input and print the largest one.

 

6. Convert Minutes to Hours

Input: total minutes
Output: hours and remaining minutes
Example: 130 → 2 hours 10 minutes

 

7. Count Vowels in a Word

Ask the user for a word and count how many vowels it contains.

 

8. Reverse a String

Input: any string
Output: the string reversed
Example: “python” → “nohtyp”

 

9. Sum of Numbers in a List

Given a list like [2, 5, 7, 1], calculate the total sum.

 

10. Simple Login Check

  • Ask for username and password
  • If username = “admin” and password = “1234”, print “Login successful”
  • Otherwise print “Access denied”

Exercise Files
Quiz1.png
Size: 54.49 KB
Quiz2.png
Size: 62.15 KB
Quiz3.png
Size: 31.53 KB
Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare