title: How to put separate python variables into different pieces of sql command?
body: <p>Is there a way to separate python variables that are inserted into an SQL command so you can do something like this?</p>
  
  <pre><code>import sqlite3
  
  conn = sqlite3.connection('Database.db')
  cursor = conn.cursor()
  
  variable1 = str(input("Enter a number: "))
  variable2 = str(input("Enter a number: "))
  
  command = ('''SELECT * FROM USERS WHERE firstname = (?) AND lastname = (?)''',
  (variable1,), (variable2,)
  
  cursor.execute(command)
  
  conn.close()
  </code></pre>
  
  <p>I realize that this doesn't work I'm just not quite sure what to do to fix it.</p>