Python Project

Q.2 Fill in the Blanks

Class 12th CBSE

Assignment

Fill in the Blanks

. Observe the following code and fill in the given blanks as directed:                                                             05

import mysql.connector as mycon

cn=mycon.connect(_______________________________________) # Statement 1

cr=cn.___________ # Statemen 2

cust_id=int(input(“Enter ID to Update:”))

cust_name=input(“Enter Customer Name (New):”)

city=input(“Enter City (New):”)

ba=float(input(“Enter Bill Amount (New):”))

mno=input(“Enter Mobile No.(New):”)

cr.execute(__________________________________________) # Statement 3

cn._____________ # Statement 4

Solution

1. host=“localhost”, user=Admin,password=“admin@123”,database=“Client”

2.cn.cursor()

3. 

Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable

Popular Videos

Play Video

UX for Teams

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

Play Video

SEO & Instagram

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer