+ 2
5 6 + Outputs n1+n2 which is correct so what isn't working or wrong in this code according to you ,if you could elaborate , Also "n1+n2" are in a string ,you won't get values for them, for that use f"{n1}+{n2}" ,also this won't add the numbers just display their values To actually add numbers as I think that's what you are trying to do "{0}".format(n1+n2)
9th May 2020, 12:52 PM
Abhay
Abhay - avatar