How do you create a database in python?
Answer / Goutam Vikash Mallick
To create a database in Python, you can use libraries such as SQLite3 or SQLAlchemy. Here's an example using SQLite3: `import sqlite3; conn = sqlite3.connect("mydb.db"); c = conn.cursor(); c.execute("CREATE TABLE mytable (a, b)")`
| Is This Answer Correct ? | 0 Yes | 0 No |
What is dataframe in python?
What are pandas in python?
What is python metaclass?
What mode is used for both writing and reading in binary format in file.?
What does input () do in python?
Can a constructor be final?
What is the process of compilation and linking in python?
Do you know what are python decorators?
What is dynamic typing in python?
What is python coded in?
Who created python?
How to write a text from from another text file in python ?