try except an import in python code example Example: try python import try: import os except: print('Can not import')