Skip to content
View AlAzery's full-sized avatar

Block or report AlAzery

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
AlAzery/README.md

Hi, I'm Al azery

header

GitHub Twitter Sponsors Curriculum Vitae

Hi everyone! i am a student of class IX and i want to say that i am web development , Programming is my hobby besides i do it in my spare time i also whenever i feel tired , bored or angry i do programming it really gives me relaxation and calm.

   granted = False
def grant():
    global granted
    granted = True
def login(name,password):
    success = False
    file = open("db.txt","r")
    for i in file:
         a,b = i.split(",")
         b = b.strip()
         if(a==name and b==password):
             success = True
             break
    file.close()
    if(success):
        print("Login Successful")
        grant()
    else:
        print("wrong user name or password")
        
def register(name,password):
    file = open("db.txt","a")
    file.write("\n"+name+","+password)
    grant()
def access(option):
    global name
    if(option=="1"):
        name = input("Enter your name: ")
        password = input("Enter your password: ")
        login(name,password)
        
    else:
        print("Enter your name and password to register")
        name = input("Enter your name: ")
        password = input("Enter your password: ")
        register(name,password)

def begin():
    global option
    print("welcome to Termux")
    print("1 - login")
    print("2 - registrasi")
    option = input("$/: ")
    if(option!="1" and option!="2"):
        begin()
        
begin()
access(option)

if(granted):
    print("Welcome ", name)
    print("### USER DETAILS ###")
    print("Username: ",name)

coding

Get in touch

INFO

Pinned Loading

  1. alazery.github.io alazery.github.io Public

    HTML