numbers = [1,1.3,3,4,5.5,6.5,8.9,99]
for n in numbers:
if type(n) == float:
print(n)
Output
1.3
5.5
6.5
8.9
Python programming examples – for beginners
Simple and easy to understand Python , R programming , Scala and Oracle examples for beginners
numbers = [1,1.3,3,4,5.5,6.5,8.9,99]
for n in numbers:
if type(n) == float:
print(n)
Output
1.3
5.5
6.5
8.9