What exactly happens when you create an alias of the Exception class?
try: 0/0 except Exception as e: print(e) The above code prints division by zero as one would expect. But if we try to print without creating the alias: try: 0/0 except Exception: print(Exception) It simply prints <class ‘Exception’>. What is happening here? The as keyword is used to create an "alias". If the error message… Read More What exactly happens when you create an alias of the Exception class?