0
What id the output of the code
Spam=2 eggs=3 Del spam Eggs=4 Spam=5 Eplain in detail
4 Answers
0
Could you please elaborate on your question? What part of the code donât you understand?
0
Print(spam*eggs)
0
From the comments of that question:
Reading from the top.
⢠Var âspamâ equals 2.
⢠Var âeggsâ equals 3.
⢠Var âspamâ is removed.
⢠Var âeggsâ now equals 4 (old value was 3).
⢠Var âspamâ is reassigned and now equals 5.
eggs (4) X spam (5) equals 20.
PS: Var is short for variable.
0
Tq