First, watch the demo video below. Your task is to code something like this, and use the code below to get started
You can either edit and code online in repl.it or you can simply cut and paste the below into your own python file
#TASK: Get the user to enter a list of usernames and passwords and store them in the lists #----------the comments below tell you where to add code! Follow the hints and get it working usernames=[] #create another empty list to store user entered passwords def main(): register() def register(): username=input("Enter a username:") #********ask the user to also enter a password usernames.append(username) #********append the entered password to the passwords list that you created above answer=input("Do you want to make another registration?") if answer=="y": register() else: registration_details() def registration_details(): print("List of usernames entered:", usernames) print("List of passwords entered:", passwords) main()
A sample flow chart (design) for this particular challenge could look like:
Test No. | Description | Test Data(input) | Expected Outcome | Actual Outcome | Further Action? |
---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 |