print("please input two numbers")
print("press q to quit.")
while True:
num_1 = input("please input number one.")
if num_1 == 'q':
break
num_2 = input("please input number two.")
try:
result = int(num_1)+int(num_2)
except ValueError:
print("two numbers ,ok ?")
else:
print(result)
dogs = 'dogs.txt'
cats = 'cats.txt'
try:
with open (dogs,'r') as doggg:
print(doggg.read())
except FileNotFoundError:
print("cant find file doggg")#replace to pass to do nothing
try:
with open (cats,'r') as cattt:
print(cattt.read())
except FileNotFoundError:
print("cant find file cattt")#replace to pass to do nothing