Advertisement
WupEly

Untitled

Nov 21st, 2022
24
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. request = f"SELECT latitude, longitude FROM Island WHERE {rules}"
  11.  
  12. for row in cursor.execute(request):
  13. print(row)
  14.  
  15. conn.close()
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement