a = 2**(2+1) * 3+8/3
print(a)
Answers
Answered by
1
Question:-
Write the output of the following code in Python.
Solution:-
Given code,
a=2**(2+1)*3+8/3
print(a)
Here,
a=2**(2+1)*3+8/3
>> a=2**3*3+8/3
>> a=8*3+8/3
>> a=24+2.666
>> a=26.666666668
Now, a gets printed.
Hence, the output is: 26.666666668
Output:-
26.666666668
Similar questions
Math,
3 months ago
Science,
3 months ago
English,
3 months ago
Social Sciences,
7 months ago
Social Sciences,
7 months ago
Business Studies,
1 year ago