~ Create a Login feature or screen in Python


Creating a Login Feature

*Teachers with subscriptions will have access to all worked solutions and python code. This sample project is based on a unique idea by TeachYourselfPython. Maybe we are on to something with the dating algorithm...?!

CHALLENGE: 

Create the login functionality for this prototype dating system. The login functionality will involve reading from a file, so do refer back to the solve and learn series if you are unsure of anything. Try to solve it yourself before looking at the solutions below. When a user logs in, they will be asked for their username and password (that they entered during the registration process) and if these two things match with what is held on the file, they will be granted access!  

SUGGESTED SOLUTION / CODE: 

Note: See if you can do better (and you should be able to). The solutions provided are basic, and allow for discussion on possible alternative methods and solutions.

Analyse

Write your own summary of the problem. What are your objectives? List the success criteria

Design Tools

Designing something or writing out some pseudocode before you actually write code is always a good idea! Get in to the habit of doing so! You can draw your flowchart here and screenshot it.

Try it yourself

Testing Table

You may want to read a little about Testing first. A teacher may go through some examples with you. Feel free to fill in the test table here, and screenshot it in to your powerpoint. Testing is absolutely essential once you have created a program!
Test No. Description Test Data(input) Expected Outcome Actual Outcome Further Action?
1
2
3
4
5
Coming soon!