-
Notifications
You must be signed in to change notification settings - Fork 2
/
Chatbot using python programming
61 lines (51 loc) · 1.14 KB
/
Chatbot using python programming
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
53
54
55
56
57
58
59
60
61
x=input("Enter your name")
y=10
print(" Hii " + x )
print('''
I Devanshu Saxena
welcomes you in our KBC game
and wish you best of luck
''')
print('''
1= yes
2= no
''')
a=int(input("Are you ready?"))
if a== 2 :
print("You can take your time and then answer " + x)
else :
print(" Great " + x + " lets move further \n your first question is: " )
b=int(input("Which one of the following river flows between Vindhyan and Satpura ranges?\n1 - Narmada \n2 - Mahanadi\n3 - Son\n4 - Netravati"))
if b== 1:
y+=10
print('''
Your score is ''')
print(y)
else:
print ('''
Your score is ''')
print(y)
c=int(input("The Central Rice Research Station is situated in? \n1 - Chennai\n2 - Cuttack\n3 - Bangalore\n4 - Quilon"))
if c== 2:
y+=10
print('''
Your score is ''')
print(y)
else:
print ('''
Your score is ''')
print(y)
d=int(input("Who among the following wrote Sanskrit grammar?\n1 - Kalidasa\n 2 - Charak\n3 - Panini\n4 - Aryabhatt"))
if d== 3:
y+=10
print('''
Your score is ''')
print(y)
else:
print ('''
Your score is ''')
print(y)
if y >=30:
print("You are really intelligent " + x)
else :
print ("You need more practice " + x)