import sqlite3
db=sqlite3.connect('new.db')
cursor=db.cursor()
cursor.execute('''CREATE TABLE hello(id INTEGER PRIMARY KEY,
Message_type, time_sent, time_received, response)''')
The above program when executed from the python shell will execute and create a database by the said name but when i run the same program from a .py file,it won't create any table or database