Q. Write the output of the following:

Code:
a=10
while a>5:
   if a%7==0:
       print(a**2,end='@')
   else:
       print(a-1,end='@')
   a=a-3
  • (A) 9@7@49@
  • (B) 9@49@
  • (C) 9@49
  • (D) 9@7@5@
πŸ’¬ Discuss
βœ… Correct Answer: (B) 9@49@

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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