Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sqlite3
- conn = sqlite3.connect("computer_cards.db")
- def create(name, cores, cpu_speed,ram,cost):
- insert_sql = "INSERT INTO computer(name, cores, cpu_speed,ram,cost) VALUES ('{}', {}, {}, {}, {})".format(name, cores, cpu_speed,ram,cost)
- conn.execute(insert_sql)
- create("Commodore 64", 1, 0.985,64,595)
- conn.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement