title: Is it possible to hard declare a variable in Python?
body: <p>I am trying to use a variable inside a substructure. I guess the variable should be of integer data type, and I am trying to add a loop here but it my data type is list since it contains multiple integers.</p>
  <pre><code>INV_match_id = [['3749052'],['3749522']]
  from statsbombpy import sb
  for x in range(2):
     match=INV_match_id[x]
     match_db = sb.events(match_id=match)
     print(match)
  </code></pre>
  <p>I have tried to extract the data one by one using another variable, but still it got declared as list. Whenever I give direct values to &quot;match&quot; it works. for eg: if I add a line match=12546 the substructure takes the value properly.</p>
  <p>Next thing I want to try is hard declare &quot;match&quot; variable as integer. Any input is appreciated. I am pretty new to Python.</p>
  <p>Edit: Adding this solution from @quamrana here.
  &quot;So, to answer your original question: Is it possible to hard declare a variable in Python?, the answer is No. Variables in python are just references to objects. Objects can be of whatever type they want to be.&quot;</p>