R
Q. What does this function return?
Code:
def check(x):
if x > 0:
return 'Positive'
else:
return 'Non-positive'
print(check(-5))
if x > 0:
return 'Positive'
else:
return 'Non-positive'
print(check(-5))
- Correct Answer - Option(B)
- Views: 5
- Filed under category Python
- Hashtags:
Discusssion
Login to discuss.