Why does this not work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
6 Answers
+ 7
Or: print("{} {}".format(x, y)) if the '+' was just to join x and y
14th Feb 2018, 6:44 AM
David Ashton
David Ashton - avatar
+ 8
This works: print("{} + {}".format(x, y))
14th Feb 2018, 6:39 AM
David Ashton
David Ashton - avatar
+ 4
print("{x} {y}".format.......)
14th Feb 2018, 5:57 AM
Oma Falk
Oma Falk - avatar
+ 4
print(int(x) + y)
14th Feb 2018, 7:49 AM
Oma Falk
Oma Falk - avatar
+ 1
How can I add them up?
14th Feb 2018, 7:40 AM
Raphael Shay
Raphael Shay - avatar
0
Thanks!
14th Feb 2018, 6:08 AM
Raphael Shay
Raphael Shay - avatar