title: TypeError: '>' not supported between instances of 'int' and 'str'
body: <p>I am writing code to have inputs for a date (day month and year) and how many times they want to repeat the task (what its for.)
  I want to use a for loop using times as the boundaries.
  Code: </p>
  
  <pre><code>def addtimeslot():
      times = int(times_repeated.get())
      print(times_repeated.get())
      variable_end.get()
      day = variable_day.get()
      month = variable_month.get()
      year = variable_year.get()
      fulldateadd = datetime.date(year, month, day)
      name1 = str(name.get())
      minute = int('00')
      second = int('00')
      hour1 = variable_st.get()
      starttimehour = str(datetime.time(hour1,minute,second))
      hour2 = variable_end.get()
      endtimehour = str(datetime.time(hour2,minute,second))
      for i in range(0 , times):
          fulldateadd = datetime.date(year, month, day)
          cursor.execute( '''INSERT INTO dates (Date, Name, Start, End) VALUES( ?,?,?,? );''', (fulldateadd , name1, starttimehour, endtimehour))
          day = int(day) + 7
          if day &gt; '31':
              month = int(month) + 1
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>TypeError: '&gt;' not supported between instances of 'int' and 'str' 
  </code></pre>