Question : PCAP QuestionA 23

1️⃣ Create a Shopping List (List)

Ask the user to enter 3 fruits, one at a time.
Store them in a list and print the full list.


2️⃣ First & Last (Tuple)

Create a tuple of 5 animals.
Print the first, middle, and last animals.


3️⃣ Student Age Dictionary (Dictionary)

Create a dictionary with keys: "John", "Mary", "Tunde"
Ask the user to input their ages and store them.
Print the full dictionary.


4️⃣ Sum of 5 Numbers (Input + Operators)

Ask the user for 5 numbers.
Find and print the sum and average.


5️⃣ Even Numbers from 1 to 20 (for-range + operators)

Use range to print only the even numbers from 1 to 20.


6️⃣ Count How Many Items (List + len + input)

Ask the user to enter 5 favorite colors.
Store in a list.
Print the total number of colors using len().


7️⃣ Multiplication Table (for-range)

Ask the user for a number.
Print its multiplication table from 1 to 12 using a loop.


8️⃣ Dictionary Value Update (Dictionary)

Create a dictionary:

scores = {"Math": 0, "English": 0, "Science": 0}

Ask the user to enter their scores in each subject.
Update the dictionary and print it.


9️⃣ Find the Largest Number (List + operators)

Create a list of 6 numbers.
Find and print the largest using either:

  • max()

  • or manual comparison with < and >.


1️⃣0️⃣ Add All Items in Tuple (Tuple + sum)

Create a tuple of 4 numbers.
Use sum() to print the total.

Write what you are looking for, and press enter to begin your search!