0
>>> float(input("Enter a number: ")) + float(input("Enter another number: "))
In type conversation someone to explain to me literally..with an example Cause I don't get the point..
6 Answers
0
Mention the language in tags ,ty
0
So what you don't understand about type conversion?
Like for example
Input() returns string so you need to convert it to int type if you want integer input from user
0
>>> float(input("Enter a number: ")) + float(input("Enter another number: "))
Here is an example can you work this for me
0
You should do some self search and go through python course ,it's obviously converting a string input into float type, like 4.5 or 4 will simply return string and string works differently from integers or floats ,strings have different methods , so you will want to convert it to float type or whatever type so you can perform the desired operations on it
0
In your example it's adding two float numbers