Notification texts go here Contact Us Buy Now!

what would be the output of below python code var=200

what would be the output of below python code var=200

 '''what would be the output of below python code var=200'''

var=200
if(var>200):
    print("within first block")
    if(var==150):
        print("which is 150")
    elif(var==100):
        print("which is 100")
elif(var>50):
    print("within second block")
    if(var%5==0):
        print("which is multiple of 5")
    elif(var%10==0):
        print("which is multiple of 10")
    else:
        print("neither multiple of 5 nor multiple of 10")
else:
    print("could not find true expression")
print("Good bye!")

'''
OUTPUT
within second block
which is multiple of 5
Good bye!
'''

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.