Int ( ) : To convert in integer / number
Str ( ) : To convert in string
--------------------------------------------------
In previous session we note that , Input function takes input as a string not a number.
Let we take example , if we add two numbers 5 and 3.
Let's check.
Answer is shown 53 instead of 8. Because input function takes input as a string not as a number.
So that there is need of int ( ) function which reads number as integer not as string.
Use int ( ) before input function i.e. use input function in the function int ( ).
i.e. number_one = int ( input ("Enter first number") )
Due to int function input read as integer.
Since 5 + 3 gives answer Total = 8 , here 8 is number.
i.e. print = (" Addition is " + Total ) Here total is number 8
( We know that we cant add integer with string in function. )
Hence to print total it need to convert in string.
i.e. print = (" Addition is " + str ( Total ) )
Float ( ) : To convert real number to integer
-------------