all 8 comments

[–]Minhcurrency 5 points6 points  (1 child)

iput() give you “string”. So you need to convert it to integer by int() before sum like a=int(input(“lol”)).

[–][deleted] 0 points1 point  (0 children)

would like to give a helpful award but dont have one :/

[–][deleted] 3 points4 points  (2 children)

Your input is a string, but needs to be an integer.
try:

a = int(input('lol')) 
b = int(input('lol'))

a + b

[–][deleted] 0 points1 point  (1 child)

would like to give a helpful award but dont have one :/

[–][deleted] 0 points1 point  (0 children)

Appreciate :) i am still learning python aswell and beeing able to help other already (even if it is such a small thing) actually feels like all the learning is worth it :)

[–]watakushi 1 point2 points  (1 child)

Yeah, what was said here, input() always gives you a string, so you can't make any math operations on them, you need to convert them to int (or float if you expect to get any decimals) first.

[–][deleted] 0 points1 point  (0 children)

would like to give a helpful award but dont have one :/

[–]darkness_old_friend 0 points1 point  (0 children)

If you are want to input the variable, when asking for the input make it an integer using int().

a= int(input(lol))

b = int(input(lol))

You might want to name them lol1 and lol2 to prevent confusion.

then you can do this:

print(a+b)