Skip to content

Tag: python-3.x

Inputting just a comma returns strange behaviour

Today I by mistake inputted just a comma on an interactive session Input: and I noticed strangely that it did not return an error but instead: Output So I explored a bit this behaviour and tried some random stuff, and it seems like it creates tuples of strings, but it seems like these objects cannot be intera…

Is the stack frame to this code missing or not?

Based on what I know. When a function is called, a stack frame should be created which tracks all names and bindings within the functions. The screenshot and code are from 《Introduction to Computation and Programming Using Python》offered by MIT 6.0001. The 7 columns are well understood. In the last line of th…