New course! Every coder should learn Generative AI!
Try a free lesson+ 1
float value
the answer for this 1+2+3+4.0+5
3 Answers
+ 1
is float
+ 1
print(1+2+3+4.0+5)
print(type(1+2+3+4.0+5))
Output:
15.0
<class 'float'>
+ 1
int+float=float
int+int=int
float+float=float