Skip to content
onsuggest
Log in
Article en

Quiz: LBYL vs EAFP: Preventing or Handling Errors in Python

Source: Real Python ·

Test your grasp of Python's LBYL and EAFP coding styles, and learn when to prevent errors and when to handle them in your code.

What is Quiz: LBYL vs EAFP: Preventing or Handling Errors in Python?

Quiz: LBYL vs EAFP: Preventing or Handling Errors in Python is a article discovery curated from Real Python. Test your grasp of Python's LBYL and EAFP coding styles, and learn when to prevent errors and when to handle them in your code.

How can I access or experience this?

You can experience this content directly on its original host (Real Python) by clicking the "Open Original" button.

Where does this content come from?

Curated from Real Python by the OnSuggest team to surface the most interesting and serendipitous content on the web.

Article · Technology

ChatGPT for the SNES

Will fitting ChatGPT onto hardware become the new “does it run Doom?” Benj Edwards worked to put chat onto a Super Nintendo! ChatGPT for SNES is an unofficial experiment designed by Benj Edwards and coded by AI agents: a ChatGPT-style chat program for the Super Nintendo. Its training conversations were written by gpt-oss-120b, OpenAI’s open-weight […]

Adafruit Blog View Details →

Keyboard shortcuts

Previous discovery
←P
Next discovery
→N
Like
L
Not for me
X
Save
S
Show this help
?
Close
Esc

Shortcuts work on the discovery page.