What id the output of the code | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What id the output of the code

Spam=2 eggs=3 Del spam Eggs=4 Spam=5 Eplain in detail

15th Dec 2018, 4:11 AM
S Arshad
S Arshad - avatar
4 Réponses
0
Could you please elaborate on your question? What part of the code don’t you understand?
15th Dec 2018, 4:15 AM
Diego
Diego - avatar
0
Print(spam*eggs)
15th Dec 2018, 4:18 AM
S Arshad
S Arshad - avatar
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.
15th Dec 2018, 4:45 AM
Diego
Diego - avatar
0
Tq
15th Dec 2018, 4:46 AM
S Arshad
S Arshad - avatar