πŸ“Š Python
Q. Write the output of the following
Code:
st1="Flow91"
st2="gun"
I=0
while I<len(st1):
   if st1[I]>="a" and st1[I]<="z":
      st2=st2+st1[I+1]
   elif st1[I]>="0" and st1[I]<="9":
      st2=st2+st1[I-1]
   else:
      st2=st2+"?"
   I=I+1
print(st2)
  • (A) gun?ow9w
  • (B) gun?ow9w9
  • (C) gun??w9w9
  • (D) gun?ow9w?
πŸ’¬ Discuss
βœ… Correct Answer: (B) gun?ow9w9

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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