0
Type conversion seems wrong?
I text the sample: float(input(â40â)) + float(input(â2â)) my python displays 40, which is not the correct answer? (sample answer is 42) my python version is 3.7 32bit, is that my python need to update?
3 RĂ©ponses
+ 3
...it just takes the input by initally displaying the 40....
Try pressing any number and enter.......then 2 will be also displayed in the next line....give another input...and then press enter ..those numbers will be added
float(input("enter a num"))+float(input("enter a num"))...try giving like this and input the value
+ 1
thank you guys
0
Write the code on the Playground and show it to us.