🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

निम्नलिखित कोड का परिणाम क्या है ?

What is the output of the following code ?

a = 50
b = a= a*5
print(b)
A)
B)
C)
D)

Explanation:

Let's break down the code:

a = 50
b = a = a * 5
print(b)
  1. Initially, a = 50.
  2. Then b = a = a * 5:
    • The expression a * 5 is evaluated first, which results in 50 * 5 = 250.
    • This result is assigned to a, so a becomes 250.
    • Simultaneously, b is also assigned the value of a, which is now 250.
  3. Finally, print(b) outputs the value of b, which is 250.

So, the output of the code is:

Answer: (A) 250

Latest Updates