Professional Documents
Culture Documents
connector
mydb=mysql.connector.connect(host="localhost",user="root",passwd="akanksh12")
mycur=mydb.cursor()
mydb=mysql.connector.connect(host="localhost",user="root",passwd="akanksh12",database="translat
e")
mycur=mydb.cursor()
import module1
while True:
print("\t\t\t\t TRANSLATOR")
print("\t\t\t\t ENGLISH-GERMAN")
print("*"*128)
print("1.Translate")
print("2.Add word")
print("5.Delete word")
print("6.exit")
if c=="1":
print("*"*128)
print("1.English to German")
print("2.German to English")
if ch=="1":
module1.enger()
else:
module1.gereng()
elif c=="2":
print("*"*128)
if ch=="1":
module1.addeng()
else:
module1.addger()
elif c=="3":
print("*"*128)
module1.dispall()
elif c=="4":
print("*"*128)
if ch=="1":
module1.changeng()
else:
module1.changer()
elif c=="5":
print("*"*128)
module1.delwor()
elif c=="6":
break
else:
pass