Advertisement
WupEly

Untitled

Nov 21st, 2022
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import sqlite3
  2.  
  3. name = input()
  4. rules = input()
  5.  
  6. conn = sqlite3.connect(name)
  7.  
  8. cursor = conn.cursor()
  9.  
  10. for row in cursor.execute("""SELECT latitude, longitude FROM Island WHERE :x""", {"x": rules}):
  11. print(row)
  12.  
  13.  
  14.  
  15. conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement