+ 2
How to use 5+4 in python
11 Answers
+ 16
Consol:
>>>5+4
ENTER
+ 3
print(5+4)
Idk needs more explaining
+ 3
a=5
b=4
print(a+b)
+ 3
Sherlock your program won't work because you can't use the + with an integer
+ 2
print(5+4)
+ 2
print("5+4=" + str(5+4))
(fix for Sherlock's code, as ramzi says you can't add a string and an integer without converting one first)
I'm still not sure what the problem Tanish is having but at least this code displays an equation for 5+4
+ 1
Could you explain a little more? I don't quite see the issue.
+ 1
print(5+4)
0
print("5+4="+(5+4))
0
print( 5+4)
0
print (5+4)