Implement the following to simulate how websites ensure that everyone has a unique username. a) Make a list of five or more usernames called current_users. b) Request an input of username. c) Print a...


I need help


Implement the following to simulate how websites ensure that everyone has a unique username.<br>a) Make a list of five or more usernames called current_users.<br>b) Request an input of username.<br>c) Print a message, Sorry XXX, that name is taken and also display the current user list if the input<br>username has already been used. XXX is the input user name.<br>d) Print a message, Great, XXX is still available and also display the updated user list if the username has<br>not been used.<br>e) Make sure your comparison is case insensitive. If 'John' has been used, 'JOHN' or 'john' should not be<br>ассepted.<br>Example Output 1<br>Enter your user name: TOM<br>Sorry TOM, that name is taken.<br>Current users: ['admin', 'tom', 'jerry', 'Dora', 'GEORGE' ]<br>

Extracted text: Implement the following to simulate how websites ensure that everyone has a unique username. a) Make a list of five or more usernames called current_users. b) Request an input of username. c) Print a message, Sorry XXX, that name is taken and also display the current user list if the input username has already been used. XXX is the input user name. d) Print a message, Great, XXX is still available and also display the updated user list if the username has not been used. e) Make sure your comparison is case insensitive. If 'John' has been used, 'JOHN' or 'john' should not be ассepted. Example Output 1 Enter your user name: TOM Sorry TOM, that name is taken. Current users: ['admin', 'tom', 'jerry', 'Dora', 'GEORGE' ]

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here