38. Write the output for the following python code.
x= 10
x+= 20
print (“The x + = 20 is =",x)
X-= 5
print (“The x - = 5is =",x)
x*= 5
print (“The x*=5 is =,x)
x/=2
print (“The x / = 2 is =",x)
x %= 3
print ("The x %= 3 is =",x)
x**= 2
print (“The x* * = 2 is =",x)
x // = 3
print (“The x//= 3 is =",x)
Answers
Answered by
1
Adding 20
The x += 20 is = 30
Subtracting 5
The x -= 5 is = 25
Multiplying 5
The x *= 5 is = 125
Dividing by 2
The x /= 2 is = 62.5
Remainder after dividing by 3
The x %= 3 is = 2.5
Raising x to the power of 2
The x ** = 2 is = 6.25
Performing floor division by 3
The x //= 3 is = 2.0
Similar questions
History,
2 months ago
Social Sciences,
5 months ago
Math,
5 months ago
Math,
11 months ago
CBSE BOARD XII,
11 months ago
Computer Science,
11 months ago