14 lines
335 B
Python
14 lines
335 B
Python
|
# Make a programm which asks Quiz Questions, which are stored in a database
|
||
|
import sqlite3
|
||
|
|
||
|
punkte=0
|
||
|
i=0
|
||
|
con = sqlite3.connect('questions.db')
|
||
|
cur = con.cursor()
|
||
|
# Fetch Questions
|
||
|
while(True):
|
||
|
i+1
|
||
|
question=cur.execute("SELECT QUESTION FROM QUESTIONS WHERE NUMBER is %s"%(i))
|
||
|
print(question)
|
||
|
break
|
||
|
# @Philipp: fortsetzen
|