Python List

List Python list is used to store data. In a list, we can store multiple items in a single variable Example: thislist = ["ford", "audi", "aulto"] print(thislist) output We can…

Continue ReadingPython List

Python MySQL Table Create

Create Table Hello Friends Let's create a table import mysql.connector mydb = mysql.connector.connect( host="localhost", user="yourusername", password="yourpassword", database="mydatabase" ) mycursor = mydb.cursor() mycursor.execute("CREATE TABLE customers (name VARCHAR(255), address VARCHAR(255))") Check Table…

Continue ReadingPython MySQL Table Create

Python MySQL

Python MySQL Hello, friends let's connect our web application to our MySQL database to do that first we need to download the MySQL connector so let's download it . python…

Continue ReadingPython MySQL

Python Dates

Python Date and time let's see how we can show the date and time in python import datetime x = datetime.datetime.now() print(x) output will be like this Display the year…

Continue ReadingPython Dates