Question: python Prompt the user with a trivia question they took. prepeating the question until they enter the right answer. Once they geight, report the number

 python Prompt the user with a trivia question they took. prepeating

python

Prompt the user with a trivia question they took. prepeating the question until they enter the right answer. Once they geight, report the number of attempts Hints: ount Use a while loop. Create a variable representing the number of attempts, initially set to O. Inside the body of the while lomake in increase by 1 by doing this variablename + - 1 board Task 2 (8 points) First, create an empty list. urses Then, repeatedly ask the user to enter the price of an item they purchased in the past week, indicating they are done by entering . As they enter each price. add it to the list using .append) endar After user input is finished print a report that includes mbax Every price entered, sorted from largest to smallest, one on each line. (Do not worry about formatting the numbers to look like prices, it doesn't matter how many decimal places they print with.) The average of all prices The number of prices over $10. Hint: use a list comprehension with filtering ix for xin_it_), then apply len to the result 24/7 upport Task 3 (10 points) First, create a dictionary, initially empty. (An empty dictionary is just a pair of is with nothing init.) Using a while loop, repeatedly prompt the user to enter movie titles, until they enter done. Each time through the loop After they enter each movie title, ask them to enter a number of 'stars' (1 through 5) to rate that movie. Store an entry in the dictionary with the title as the key and the rating as the value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!