Skip to content

Commit 474a8a9

Browse files
committed
dating.py
1 parent a0da5de commit 474a8a9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

dating.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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()

0 commit comments

Comments
 (0)