-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconnect.py
More file actions
34 lines (28 loc) · 759 Bytes
/
connect.py
File metadata and controls
34 lines (28 loc) · 759 Bytes
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
#!/bin/python
print("Enter the y/n for the details : ")
t1 = input()
if t1.lower() == "y":
pass
elif t1.lower() == "n":
print("See you soon!")
exit()
else:
print("Enter only y/n.")
while True:
print("Press 1 to enter details : \n")
print("Press 2 to enter number : \n")
print("Press 3 to enter code : \n")
print("Press 4 to quit : \n")
press = int(input())
if press == 1:
name = input("Enter your name : ")
addr = input("Etner your location: ")
print(name,"\n",addr)
elif press == 2:
y = int(input("Enter your contact number : "))
print(y)
elif press == 3:
z = int(input("Enter your code : "))
print(z)
elif press == 4:
exit()