Если я отлаживаю, у меня нет ошибок, но данные не добавляются в таблицу sqlite.
import sqlite3 as lite
conn = lite.connect('pro1.db')
c = conn.cursor()
print ('Opened database successfully')
def room_name():
room = [ ]
room1 = kelas
while kelas1 != '' :
room1 = input ( 'room type :' )#input from users
if room1 != '' :
room.append ( room1 )
print (room)
room = "CREATE TABLE room IF NOT EXISTS ( %s TEXT)"
x = c.execute ( room % (room1) )
print ( "label ok" )
conn.commit ( )
c.close ( )
room_name()