Skip to content

Commit

Permalink
Update file error
Browse files Browse the repository at this point in the history
  • Loading branch information
ismvellea committed May 30, 2022
1 parent 2c4db9d commit 76da320
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Try/Except/try&exceptExample2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
if int(numCats) >= 4:
print('That is a lot of cats.')
else:
print('That is not that many cats.')
print('That is not that many cats.')
except:
print('Your did not enter a number.')
4 changes: 3 additions & 1 deletion hello.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! python3
import sys

# This program says hello and asks for my name

Expand All @@ -10,4 +11,5 @@

print('What is your age?') # ask for their age
myAge = input()
print('You will be ' + str(int(myAge) + 1) + ' in a year.')
print('You will be ' + str(int(myAge) + 1) + ' in a year.')
print(sys.argv)

0 comments on commit 76da320

Please sign in to comment.