Skip to content
Advertisement

Create a database in python where user inputs the data?

I would like the program to ask the user for information (i.e. age and name) and for this information to be put into the database.

I have tried the following:

The error that keeps appearing is:

I have Python 3.7 and I work in spyder.

Advertisement

Answer

Try this,

student_name is a string and should be enclosed in single quotes.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement