πŸ“Š Python
Q. What will be the result of following Python code snippet after execution?
Code:
a=0

b=1

if (a and b):

    print("hi")

elif(not(a)):

    print("hello")

elif(b):

    print("hi world")

else:

    print("hello world")
  • (A) hello world
  • (B) hi
  • (C) hi world
  • (D) hello
πŸ’¬ Discuss
βœ… Correct Answer: (D) hello

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
190
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
88%
Success Rate