Skip to main content

Posts

Showing posts with the label Python with sql

A Disease Detecting Program in python With mysql Databases.

import  time   import  mysql.connector from  mysql.connector  import  errorcode import  datetime from  datetime  import  datetime print ( "To make connection with your pc's mysql please enter your mysql information:" ) user = input ( "Enter your computer's username:" ) pass_ = input ( "Enter your computer's passward:" ) con = mysql.connector.connect( host = 'localhost' , user = user , password = pass_ ) if  con.is_connected():      print ( "Welcome To Disease Detection" ) cur = con.cursor() def   create_db ():      while   True :          try :             cur.execute( "create database hospital" )            ...