total = no1 + no2 # 55 as input take the value as a string so "5" + "5" = 55 print("total is" + total) # so to make the answer correct we need to use int (integer ...
When performing numerical calculations in Python, there are frequent situations where you need to switch between integers (int) and floating-point numbers (float). "I want to convert the integer total ...
Int(): Python Int() function take float or string as an argument and returns int type object. float(): Python float() function take int or string as an argument and return float type object. str(): ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results