Notification texts go here Contact Us Buy Now!

what would be the output of below python code temp="Hello? how are you?

what would be the output of below python code temp="Hello? how are you?

 from typing import final

'''what would be the output of below python code temp="Hello? how are you?"'''

temp="Hello? how are you?"
if(temp.isdigit()):
    temp+="fine"
else:
    for var1 in range(len(temp)):
        if(temp[var1]=='?'):
            final_val=temp[:var1]
            break
if(final_val.endswith('u')):
    final_val.replace('you','u')
else:
    final_val=final_val.upper()
print(final_val)

'''
OUTPUT
HELLO
'''

Post a Comment

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.