-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathl2.py
More file actions
52 lines (41 loc) · 1.28 KB
/
l2.py
File metadata and controls
52 lines (41 loc) · 1.28 KB
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
44
45
46
47
48
49
50
51
52
# # # # from unicodedata import name
# # # # name = input("What is your name?")
# # # # if name == "Kushagra Dubey":
# # # # print("Welcome Kushagra")
# # # # elif name == "Dubey":
# # # # print("Only your sirname is same.")
# # # # else:
# # # # print("You aren't Kushagra, kiddo!")
# # # while True:
# # # print("What is your name?")
# # # name = input()
# # # if name != "Kushagra":
# # # continue
# # # print("Hello Kushagra. What is the password? (It is a fish)")
# # # password = input()
# # # if password == "swordfish":
# # # break
# # # print("Access Granted.")
# # # Truthy and Falsey Values
# # # 0, 0.0, "" are considered as False
# # # else are considered as True
# # name = ""
# # while not name:
# # print("Enter your name:")
# # name = input()
# # print("How many guests will you have?")
# # numOfGuests = int(input())
# # if numOfGuests:
# # print("Be sure to have enough tea for the guests.")
# # print("Done")
# print("My name is")
# for i in range(5):
# print("Kushagra " + str(i))
# i +=1
import sys
while not False:
print("Type exit to quit")
response = input()
if response== 'exit' :
sys.exit()
print("You typed " + response + ".")