C.W.K.
Stream
Quiz · 3 questions

🔋 Standard Library — Batteries Included

collections / itertools / functools / datetime / re / logging

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

Quiz

01Why is collections.deque preferred over a list for queue operations?
Hint
Where does the cost of list.pop(0) come from?
02When should you use secrets instead of random?
Hint
What's the threat model for each?
03Why use logger.info("%s logged in", user) instead of logger.info(f"{user} logged in")?
Hint
When does each form actually do the formatting work?
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.