migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
7
python-csi160/week02/Week-2Practice-Problems/part3.py
Normal file
7
python-csi160/week02/Week-2Practice-Problems/part3.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Read an integer:
|
||||
number = int(input('Enter a number:\n'))
|
||||
|
||||
# Print output for next and previous that matches the instructions
|
||||
|
||||
print("The next number for the number " + str(number) + " is " + str(number + 1))
|
||||
print("The previous number for the number " + str(number) + " is " + str(number - 1))
|
Loading…
Add table
Add a link
Reference in a new issue