File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ #!usr/bin/env python3
2+ # Made by Maximiliano Fairman
3+ # Created on oct 20th 2025
4+ # This program will only approve of you dating
5+ # if you are either rich OR really good looking.
6+
7+
8+ def main ():
9+
10+ # Ask the user if they are good looking
11+ good_looking = input ("Are you good looking? (yes/no): " ).strip ().lower ()
12+
13+ # Ask the user if they are rich
14+ rich = input ("Are you rich? (yes/no): " ).strip ().lower ()
15+
16+ # Check for invalid input first
17+ if good_looking not in ["yes" , "no" ] or rich not in ["yes" , "no" ]:
18+ print ("Invalid input. Please answer with 'yes' or 'no'." )
19+
20+ return # stop the program here so it doesn't print other messages
21+
22+ # If answers are good deside weather
23+ # to approve or not
24+ if good_looking == "yes" or rich == "yes" :
25+ print ("You are approved to date!" )
26+ else :
27+ print ("You are not approved to date." )
28+
29+
30+ # End of program
31+ if __name__ == "__main__" :
32+ main ()
You can’t perform that action at this time.
0 commit comments