Monday, April 22, 2024

📑 Continue and Pass

📑 Task

1) Will the code print two identical lines?
2) How can you modify the code to avoid using external variables when
loading a string argument into the function exec()?

📑 Answer

1) The lines will be different:
- in the second case, the program will not perform any actions when i = 0,
- in the first case, it will skip this iteration
2)

📑 The special variable "_"

📑 Task

1) What properties of the “_” character do we observe in code cells?
2) How can you restore the properties of this special variable?





📑 Answer

1) "_" is a special variable that represents the last returned value
and reassigning "_" convert it into an usual variable
2)