C.W.K.
Stream
Quiz · 3 questions

🐍 Pythonic — Beyond Syntax

EAFP / duck typing / where every Pythonic Way callout converges

Level 0Curious
0 XP0/93 lessons0/23 achievements
0/100 XP to next level100 XP to go0% complete

Quiz

01What does "EAFP over LBYL" mean in Python?
Hint
Two acronyms — what's each one's preference?
02Why is for i in range(len(seq)) usually unpythonic?
Hint
What's the function that gives you both index and value?
03When should you write a class instead of a function in Python?
Hint
What problem do classes actually solve that functions don't?
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.