Compare commits

...

2 commits

Author SHA1 Message Date
f3462839b5
indent
Some checks failed
/ job (push) Failing after 3m38s
2024-07-30 22:15:58 +02:00
3853e5f0b9
python 2024-07-30 22:08:05 +02:00
2 changed files with 18 additions and 7 deletions

11
get_num_square.py Normal file
View file

@ -0,0 +1,11 @@
import os
num = os.environ.get("INPUT_NUM")
if num:
try:
num = int(num)
except Exception:
exit("ERROR: the INPUT_NUM provided ({num}) is not an integer")
print(num**2)
else:
num = 1