24 августа 2023
id 1989194811What am i doing wrong ?
Can anybody explain how to convert from int to float
Use float instead of int
id 1989194811What am i doing wrong ?
Can anybody explain how to convert from int to float
In line 1 & 2, you have been using print function which will return None. Do not user print function
id 1989194811What am i doing wrong ?
Can anybody explain how to convert from int to float
U didn't give colon
Print(input('enter height: '))
Dagmawi MindaHELP me! The question is as follows...
Find the length of the text python and convert the value to float and covert it to string?
text ="this is a text"
To get the size you can use python's len function:
len(text)
The result can be stored in a variable:
size = len(text)
We convert the result to a float:
print(float(size))