0

I'm new to python and I was trying to write a code like this

print("please enter random number")

score1 =input()

score2 =input()

score3 =input()

print("your final number is", score1 + score2 + score3)

it still turns out with no error but I want to calculate score1 and score2 and score3 to get a final result

kaiset46
  • 1
  • 1
  • 1
    You didn't explain your issue, I imagine you have 1+2+3 = 123 instead of 6? – mozway Jun 30 '22 at 12:02
  • 1
    as you're new, input() captures user-input in string format. But arithmatic operation is available for int and float only. So you're required to typecast it – iamawesome Jun 30 '22 at 12:11

0 Answers0