This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

22 lines
388 B
Python

lst = []
def flt():
try:
a = float(input('Enter a float value:'))
if a == 0:
lst.sort()
for i in lst:
print(i)
elif a < 0 or a.is_integer():
raise Exception
elif a != 0:
lst.append(a)
flt()
except:
print('Give only positive float numbers')
flt()
flt()