Question: def readAge ( filename ) : strAge = None while True: try: if strAge is : infile = open ( filename ) strAge = infile.readline
def readAgefilename:
strAge None
while True:
try:
if strAge is
:
infile openfilename
strAge infile.readline
intstrAge
printNext year you will be age
break
except
:
printValue cannot be converted to integer.
strAge inputEnter a proper age:
except
:
printInput file is missing:
filename inputEnter a new filename:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
