LectureMoment
← LectureMoment

How Python Actually Behaves · Intermediate

How Python Actually Behaves — Sharp Edges

15 practice questions on How Python Actually Behaves. Every question is written from a specific moment in a real lecture, and after you answer it links to that exact timestamp so you can check it yourself.

What this pack asks

The free questions in this pack. Answer choices and explanations appear as you play.

  • A developer decodes a 64-bit float by hand: read the sign bit, read the 11-bit exponent field as an unsigned integer e, then compute 1.fraction * 2**e. Run on the bits of 0.1, it produces an astronomically large number instead of a small one. What explains the result?

    Answer this one →
  • A team is auditing memory use with sys.getsizeof. They find two lists that each hold three zeros and compare equal, yet one reports 120 bytes and the other 80. Poking further, an eight-element list also reports 120, and a seven-element list reports less than the three-element one. What does this pattern indicate?

    Answer this one →

Written from lectures by mCoding. Not affiliated with or endorsed by any university, channel, creator or certification program.