choice "6" 2 if choice "5": 3 print(choice) 4 elif choice "6": 5- try: sql - "*"INSERT INTO students(student_id, student_name, student Tastname, 7. 8. student email, student DOB, major_id) VALUES(?, 2, 2, ?, 2, ?)** input ("Enter a student ID: ") stud id stud name input ("Enter a name: ") stud lastname - input ("Enter Last name: ") stud email - input("Enter email address: ") stud DOB - input ("Enter DOB 1n (MM-DD-YYYY) format: ") 9. 10 11 12 13 14 cursor.execute(sql, (stud id, stud_name, stud_lastname, stud email, stud DOB, 206)) 15 A 16 A17 cursor.execute(sql, (23593043, "Greg", "Moyers", "gmeyers@test.com", "06-10-1997, 206)) cursor.commit() 18 19 20- еxcept: print("Try again") 21

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

please help me! please do this code over to show the correct output in the console. please show screenshot with every line of code with correct output in the console. 

 
1 choice = "6"
2 if choice "5":
print(choice)
4- elif choice "6" :
5-
try:
sql
7.
8.
9.
*INSERT INTO students (student_id, student_name, student_Tastname,
student email, student DOB, major_id) VALUES(?, 2, ?, ?, 2, ?)***
stud id - input("Enter a student ID: ")
stud_name- input("Enter a name: ")
stud lastname = input ("Enter Last name: ")
stud email - input("Enter email address: ")
stud DOB - input ("Enter DOB in (MM-DD-YYYY) format: ")
10
11
12
13
14
cursor.execute(sq1,(stud_id, stud_name, stud_lastname, stud email, stud D08, 206))
15
A16
17
cursor.execute(sql, (23593043, "Greg", "Moyers", "gmeyersetest.com", "06-10-1997, 206))
cursor.commit ()
18
19
except:
print("Try again")
20-
21
Enter a student ID: 2593043
Enter a name: Greg
Enter Last name: Meyers
Enter email address: gmeyers@test.com
Enter DOB in (MM-DD-YÝYY) format: 06-10-1997
Try again
1234 n67
Transcribed Image Text:1 choice = "6" 2 if choice "5": print(choice) 4- elif choice "6" : 5- try: sql 7. 8. 9. *INSERT INTO students (student_id, student_name, student_Tastname, student email, student DOB, major_id) VALUES(?, 2, ?, ?, 2, ?)*** stud id - input("Enter a student ID: ") stud_name- input("Enter a name: ") stud lastname = input ("Enter Last name: ") stud email - input("Enter email address: ") stud DOB - input ("Enter DOB in (MM-DD-YYYY) format: ") 10 11 12 13 14 cursor.execute(sq1,(stud_id, stud_name, stud_lastname, stud email, stud D08, 206)) 15 A16 17 cursor.execute(sql, (23593043, "Greg", "Moyers", "gmeyersetest.com", "06-10-1997, 206)) cursor.commit () 18 19 except: print("Try again") 20- 21 Enter a student ID: 2593043 Enter a name: Greg Enter Last name: Meyers Enter email address: gmeyers@test.com Enter DOB in (MM-DD-YÝYY) format: 06-10-1997 Try again 1234 n67
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education