my code

Help me with this code!
Comments Enabled!

Snippet options

Download: Download snippet as
Copy snippet: For this you need a free my code account.
Embed code : You will find the embed code for this snippet at the end of the page, if you want to embed it into a website or a blog!

Log_I = input("Would you like to Login or Register? ")
if Log_I == "Register":
    age = (str(input("What is your age? ")))
    name = (str(input("What is you name? ")))
    (print("ok your username  is",name[0:3] + age))
    Username = name[0:3] + age
    Password = (str(input("Enter a password for your account please! ")))
    hs = open("Login.txt","a")
    hs.write("1."+Username+" "+Password+ "\n")
elif Log_I == "Login":
   username = input("Please enter your username: ")
   password = input("Please enter your password: ")
   found = False
   for line in file:
       if username and password:
           found = True
           print("Logged In!")
           if found == False:
               print("Incorrect login details entered")
    input("Please select Login Or Register! ")

Create a free my code account now.

my code is a free service, which allows you to save and manage code snippes of any kind and programming language. We provide many advantages for your daily work with code-snippets, also for your teamwork. Give it a try!

Find out more and register now

You can customize the height of iFrame-Codes as needed! You can find more infos in our API Reference for iframe Embeds.