Question: program that prompts the user for 5 numbers and then stores each of these in a list called numbers. The program should then output information
program that prompts the user for 5 numbers and then stores each of these in a list called numbers. The program should then output information about these numbers, as in the output below. Note that you can use the functions min, max, sum and len, and you can use the append method to add a number to a list.
Number: 5 Number: 20 Number: 1 Number: 2 Number: 3 The first number is 5 The last number is 3 The smallest number is 1 The largest number is 20 The average of the numbers is 6.2 Woefully inadequate security checker
Please use the same file, list_exercises.py
Copy the following list of usernames:
usernames = ['jimbo', 'giltson98', 'derekf', 'WhatSup', 'NicolEye', 'swei45', 'BaseInterpreterInterface', 'BaseStdIn', 'Command', 'ExecState', 'InteractiveConsole', 'InterpreterInterface', 'StartServer', 'bob'] Ask the user for their username. If the username is in the above list of authorised users, print "Access granted", otherwise print "Access denied".
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
