What will be the output in the console after the following c…
What will be the output in the console after the following code is executed? The user enters a 75 and 1 at the first two prompts. def main(): try: total = int(input(‘Enter total cost of items:’)) num_items = int(input(‘Enter number of items:’)) average = total / num_items except Exception as err: print(‘The code encounter an error’) else: print(‘The code does not encounter an error’)main()
Read Details