I've recently taken an interest Python and decided to challenge myself with a simple quiz task that I found online. The full task can be found here if that makes things clearer:

"<https://gyazo.com/35426cce2c0f177b37031ea6a87b2ce9>"

***What I have done so far:***

1. Asked for a name, age and password
2. Created a username from the name and age entered earlier (task 1 from the screenshot above)
3. Stored the username and password into an external text file which is separated by a comma.

What it looks like so far: 

```
name = input("Please enter your name. ")
age = input("Now please enter you age. ")

username = name[0:3] + age
print ("Your username has been created and is", username, ".")

password = input("Now please create a password. ")

file = open("Login.txt","a")
file.write (username)
file.write (",")
file.write (password)
file.write("\n")
file.close()

print ("Your login details have been saved. ")

```

***What I need help with:***

Basically I'm struggling to create a login program. Something that asks for a username and password, checks to see if said username and password is in the text file and if not, prompts the user to create an account by entering their name,age and password to continue. 

Any help will be greatly appreciated. If I haven't been clear anywhere feel free to ask where I need to be more specific as I know it's important to be 100% clear.