title: So im developing a code on python and i keep getting this error "TypeError: can't multiply sequence by non-int of type 'tuple' "
body: <p>code:</p>
  <pre><code>def main():
             incomefile = open(r'C:\Users\jacey\income.txt', 'w')
  
             income1 = int(input(&quot;Please enter your current income:&quot;))
             tax1= float(input(&quot;please enter current tax:&quot;))
             income2 = int(input(&quot;Please enter your current income:&quot;))
             tax2= float(input(&quot;please enter current tax:&quot;))
             income3 = int(input(&quot;Please enter your current income:&quot;))
             tax3= float(input(&quot;please enter current tax:&quot;))
             income4 = int(input(&quot;Please enter your current income:&quot;))
             tax4= float(input(&quot;please enter current tax:&quot;))
             grossIncome= (income1+income2+income3+income4, '.2f')
             taxTotal= (tax1+tax2+tax3+tax4, '.2f')
             grossTaxes = (grossIncome*taxTotal, '.2f')
             netIncome = (grossIncome - grossTaxes, '.2f')
             
             
  
             incomefile.write(str(income1) +'\n')
             incomefile.write(str(tax1) +'\n')
             incomefile.write(str(income2) +'\n')
             incomefile.write(str(tax2) +'\n')
             incomefile.write(str(income3) +'\n')
             incomefile.write(str(tax3) +'\n')
             incomefile.write(str(income4) +'\n')
             incomefile.write(str(tax4) +'\n')
             incomefile.write(str(grossIncome) +'\n')
  
             incomefile.close()
             print('Data recorded in income.txt')
  
  main()
             
  grossTaxes = (grossIncome*taxTotal)
  </code></pre>
  <p>error:</p>
  <pre><code>TypeError: can't multiply sequence by non-int of type 'tuple'
  </code></pre>