+ 1

float value

the answer for this 1+2+3+4.0+5

2nd Oct 2018, 11:54 AM
khaja basha
khaja basha - avatar
3 ответов
+ 1
is float
2nd Oct 2018, 12:19 PM
Kevin Dietrichstein
Kevin Dietrichstein - avatar
+ 1
print(1+2+3+4.0+5) print(type(1+2+3+4.0+5)) Output: 15.0 <class 'float'>
2nd Oct 2018, 1:10 PM
Kishalaya Saha
Kishalaya Saha - avatar
+ 1
int+float=float int+int=int float+float=float
2nd Oct 2018, 3:57 PM
Maninder $ingh
Maninder $ingh - avatar