migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
9
python-csi160/week04/Week-4Practice-Problems/part3.py
Normal file
9
python-csi160/week04/Week-4Practice-Problems/part3.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
num = int(input('Enter a number: '))
|
||||
|
||||
# Print out result
|
||||
if num > 0:
|
||||
print("1")
|
||||
elif num < 0:
|
||||
print("-1")
|
||||
else:
|
||||
print("0")
|
Loading…
Add table
Add a link
Reference in a new issue