Coder Social home page Coder Social logo

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

Al azery's Projects

alazery.github.io icon alazery.github.io

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.

php-dasar icon php-dasar

Materi PHP Dasar untuk Kuliah Pemrograman Web - Teknik Informatika UNPAS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.