python
This commit is contained in:
parent
30d564eb4f
commit
3853e5f0b9
1 changed files with 11 additions and 0 deletions
11
get_num_square.py
Normal file
11
get_num_square.py
Normal 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
|
Loading…
Reference in a new issue