# ---- PROBLEM 1 ----
# a = 10 
# b = 3 
# c = 5
# try:
#     for i in ['a','b','c']:
#         print(i**2)
# except TypeError:
#     print('There was a type error!')
# else:
#     print('Task completed!')



# ----- PROBLEM 2 -----
# try:
#     x = 5
#     y = 0

#     z = x/y
# except:
#     print('There is an error!')
# finally:
#     print('All done!')



# ---- PROBLEM 3 ----
# def ask():
    
#     while True:
#         try:
#             res = int(input('Input an integer: '))
#             ans = res ** 2
#         except:
#             print('An error occured! Please try again! \n')
#         else:
#             print(f"Thank you, your number squared is: {ans}")
#             break

# ask()