repl.it
@SakuraKimiko/

member signup

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
memberlist=[]

print ("*****Welcome to mymailbox.com****")

while True:
    alreadymember=input("Already a member?:")
    
    if alreadymember=="Y" or alreadymember=="y" or alreadymember=="Yes" or alreadymember=="yes" or alreadymember=="YES":
    
        member=input("Enter User Name:")
    
        if member in memberlist:
            print ("Welcome", (member))
        
        else:
            print((member),"not found")
        
    if alreadymember=="N" or alreadymember=="n" or alreadymember=="No" or alreadymember=="NO":
        
        signup=input("Would you like to signup?:")
        
        if signup=="yes" or signup=="YES" or signup=="Yes" or signup=="Y" or signup=="y":
            
            print("Kindly fill the following form")
            
            First_name=input("Enter Your first name:")
            print("First Name=:",(First_name))
            Second_name=input("Enter Your last name:")
            print("Second Name=:",(Second_name))
            Age=int(input("Enter Your age:"))
            print("Age=:",(Age))
            Username=input("Enter your username:")
            print("Username=:",(Username))
            memberlist.append(Username)
            
            print("Welcome to the Team",(First_name))
            
        if signup=="no" or signup=="NO" or signup=="No" or signup=="N" or signup=="n":  
            
            print("Enjoy browsing mymailbox.com, hope you change your mind")
            
            print(memberlist)