Created
November 26, 2021 05:46
-
-
Save Pratik-Shukla-22/e296ce4764be33e424a428e915583da7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Python program for date_fashion | |
def date_fashion(you,date): | |
#If you or date is greater than or equal to 8 | |
#And | |
#If you and your date's score is greater than 2 | |
if((you>=8 or date >=8) and you>2 and date>2): | |
return 2 | |
#If both scores are less than or equal to 2 | |
elif(you<=2 or date<=2): | |
return 0 | |
#In any other situaltion | |
else: | |
return 1 | |
#Function call | |
you = 2 | |
date = 10 | |
answer = date_fashion(5,10) | |
if(answer==0): | |
print(f"Under given conditions the answer is No.") | |
elif(answer==1): | |
print(f"Under given conditions the answer is Maybe.") | |
else: | |
print(f"Under given conditions the answer is Yes.") | |
###################### Output ###################### | |
#Under given conditions the answer is Yes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment