repl.it
@janimanthan80/

page of registration and login-1

Python

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
            # how to register and login


                      #registration
print("\t\t\t\t\t\t\\\\\\\\Welcome To My Registration Page\\\\\\\\")

class myreg():
  name = input("Enter Your Name : ")

  email1 = input("\nEnter Your Email : ")
  password1 = input("\nEnter Your Password : ")

  msg = print("\nWelcome To MyPage " + name.upper() + "\n\nYou Have Successfully Registered.")

 
                      #login

  print("\nLogin")

  while True:
    email2 = input("\nEnter your Email : ")
    password2 = input("\nEnter Your Password : ")
    if email1 == email2 and password1 == password2:
      print("\nLogin Successful\n\nWelcome To Our Page")
      break
    else:
      print("\nYou Have Entered Wrong Email Or Password Please Try Again") 

myreg()