Q. Write the output of the following code

Code:
x=2
y=6
x=x+y/2 + y//4
print(x)
  • (A) 6
  • (B) 6.0
  • (C) 5
  • (D) 5.0
πŸ’¬ Discuss
βœ… Correct Answer: (B) 6.0

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
187
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
84%
Success Rate