Which version of the code is more desirable?Questions & Answers › Category: Python › Which version of the code is more desirable? 0 Vote Up Vote Down Lokesh Kumar Staff asked 2 years ago Which version of the code is more desirable? a.x, y = 1, 0try: x / yexcept Exception as e: print(e)b.x, y = 1, 0try: x / yexcept ZeroDivisionError as e: print(e)Share this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...1 Answers 0 Vote Up Vote Down Lokesh Kumar Staff answered 2 years ago b.x, y = 1, 0try: x / yexcept ZeroDivisionError as e: print(e)Share this:Click to share on Facebook (Opens in new window)Click to share on Twitter (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to print (Opens in new window)Click to share on LinkedIn (Opens in new window)Click to share on Pinterest (Opens in new window)Like this:Like Loading...