Ask Question
15 July, 01:03

What is the value of i printed? j = i = 1 i + = j + j * 5 print ("What is i?", i)

+5
Answers (1)
  1. 15 July, 01:47
    0
    7

    Explanation:

    Given the codes as follows:

    j = i = 1 i + = j + j * 5 print ("What is i?", i)

    In line 1, the value of 1 is assigned to variable i and then the variable i is assigned to variable j. This means j will hold the value of 1 as well.

    In line 2, j will be multiplied with 5 prior to the addition with j itself. So, j + j * 5 - > 1 + (1 * 5) - > 1 + 5 - > 6

    Next, value of 6 will be added with i. i = i + 6 - > i = 1 + 6 - > 7#

    Eventually, value of 7 will be printed out (Line 3).
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What is the value of i printed? j = i = 1 i + = j + j * 5 print ("What is i?", i) ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers