+ 1
why it say no output..?
num_1 ="5" num_2 ="6" total ="num_1 +num_2" print = "total"
3 Respuestas
+ 3
You need to call the print function, like this: print(total). Also, do not use quotes for the variables. I have changed your code, see below:
num_1=5
num_2=6
total =num_1+num_2
print(total)
+ 2
also you defined 5 and 6 as strings so answer will be 56
+ 1
the last line wrong... you should call print function..
total = num_1 + num_2
print (total)