program that prompts the user for 5 numbers and then stores each of these in a list
Fantastic news! We've Found the answer you've been seeking!
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 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".
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Posted Date: