-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmysqlcode.py
More file actions
33 lines (26 loc) · 781 Bytes
/
Copy pathmysqlcode.py
File metadata and controls
33 lines (26 loc) · 781 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
# import mysql.connector
# con = mysql.connector.connect(
# user='ardit700_student',
# password='ardit700_student',
# host='108.167.140.122',
# database='ardit700_pm1database')
# cursor = con.cursor()
# word = input("Enter Word:")
# query = cursor.execute("SELECT * FROM Dictionary WHERE Expression = '%s' " % word)
# results = cursor.fetchall()
# if results:
# for result in results:
# print(result[1])
# else:
# print("No word found!")
while True:
inp = input("What do you do")
if inp == "Choice1":
print("Consequence1")
break
if inp == "Choice2":
print("Consequence2")
break
if inp == "Choice3":
print("Consequence3")
break