Aug-02-2019, 07:40 PM
(Aug-02-2019, 07:31 PM)ichabod801 Wrote: int('1') does not change the value a is assigned to. It creates a new value and converts that. You need to reassign the new value to a. And you should convert a, not a new value, to make sure it works if the value of a is changed.
Thanks! This helped.
To solve the problem, I simply did as ichabod801 instructed. I changed the code
a = "1" b = 2 int("1") print(a + b)to this code:
a = "1" b = 2 a = int("1") print(a + b)Thanks Again!