comparison absval/absval.python.txt @ 1:aff6409d16d1 draft

Uploaded
author fubar2
date Fri, 08 Dec 2023 08:47:36 +0000
parents
children
comparison
equal deleted inserted replaced
0:551c076a635c 1:aff6409d16d1
1 #raw
2 import sys
3 inp = []
4 for line in sys.stdin:
5 if line.strip() > '':
6 x = line.split()[0]
7 inp.append(str(abs(float(x))))
8 else:
9 break
10 sys.stdout.write('\n'.join(inp))
11 #end raw