0 of 1 Questions completed
Questions:
You have already completed the practice exercise before. Hence you can not start it again.
Practice Exercise is loading…
You must sign in or sign up to start the practice exercise.
You must first complete the following:
0 of 1 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
You want to build a program that allows the user to determine how much clout they have based on their follower count. The available options are:
The program will first ask the user for the number of followers that the user has. It should then determine their clout level based on their follower count. Lastly, it should send the user a message displaying the clout level, like so:
This account’s clout level is ‘Probably a micro-influencer’.
If the program can’t determine what their clout level is for any reason, it’ll display an error message.
# Flag variable checking if the follower_count is a valid number invalid_input = False # Ask the user "How many followers does the account have?" ? - Answer A - ? # If they have 100 or less followers, they're a 'Newbie' if follower_count >= 0 and follower_count <= 100: clout_level = "Newbie" # If they have between 100 and 1500 followers, they're "Building the brand" ? - Answer B - ? clout_level = "Building the brand" # If they have between 1500 and 5000 followers, they're a micro-influencer elif follower_count > 1500 and follower_count <= 5000: clout_level = "Probably a micro-influencer." # If they have over 5000 followers, they have absolute clout elif follower_count > 5000: clout_level = "Absolute clout." # If they don't enter a positive number, change flag variable to true and alert user ? - Answer C - ? ? – Answer D - ? print("We could not determine the account's clout level. Please enter a valid number.") # If the input was not invalid, tell the user what the account's clout level is if invalid_input == False: print(? – Answer E - ?)
Answer A:
Answer B:
Answer C:
(Get your Python Cram Kit for Answer C!)
Answer D:
(Get your Python Cram Kit for Answer D!)
Answer E:
(Get your Python Cram Kit for Answer E!)