Answer the question
In order to leave comments, you need to log in
Sqlite3 3 error, what's the error out of the blue?
Here is the code:
import sqlite3
db = sqlite3.connect('server.sqlite')
sql = db.cursor()
sql.execute("""CREATE TABLE IF NOT EXISTS _Users_ (name TEXT)""")
db.commit()
UserName = input("Ваш ник?: ")
sql.execute("SELECT name FROM _Users_")
sql.execute("INSERT INTO _Users_ VALUES (?)", (UserName))
db.commit()
for i in sql.execute("SELECT * FROM _Users_"):
print("Вот все ники:" + i)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question