From c981e33342f7c435571dcc321c875887342970ae Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Mon, 13 Jul 2026 19:46:15 -0400 Subject: [PATCH 01/21] warmups files --- week-2/assignment-2/warmup3.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 week-2/assignment-2/warmup3.py diff --git a/week-2/assignment-2/warmup3.py b/week-2/assignment-2/warmup3.py new file mode 100644 index 0000000..e69de29 From e8c3550f617abf4f93d04a6a6ccb63cabaf09b00 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Mon, 13 Jul 2026 19:48:11 -0400 Subject: [PATCH 02/21] warmups files --- week-2/assignment-2/warmup3.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/week-2/assignment-2/warmup3.py b/week-2/assignment-2/warmup3.py index e69de29..a6324f7 100644 --- a/week-2/assignment-2/warmup3.py +++ b/week-2/assignment-2/warmup3.py @@ -0,0 +1,2 @@ +# git log --oneline output: +#c981e33 (HEAD -> assignment-2, origin/assignment-2) warmups files \ No newline at end of file From 02308a4f5abc19f888f0e18abe112be781e81ded Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 11:44:51 -0400 Subject: [PATCH 03/21] adding assignment 3 files --- week-3/assignment-3/mini-project.py | 67 +++++++++++++++++++++++++++++ week-3/assignment-3/warmup1.py | 17 ++++++++ week-3/assignment-3/warmup2.py | 14 ++++++ week-3/assignment-3/warmup3.py | 5 +++ week-3/assignment-3/warmup4.py | 19 ++++++++ 5 files changed, 122 insertions(+) create mode 100644 week-3/assignment-3/mini-project.py create mode 100644 week-3/assignment-3/warmup1.py create mode 100644 week-3/assignment-3/warmup2.py create mode 100644 week-3/assignment-3/warmup3.py create mode 100644 week-3/assignment-3/warmup4.py diff --git a/week-3/assignment-3/mini-project.py b/week-3/assignment-3/mini-project.py new file mode 100644 index 0000000..747a106 --- /dev/null +++ b/week-3/assignment-3/mini-project.py @@ -0,0 +1,67 @@ +day = input("What day is it? ").capitalize() +timeOfDay = input("What time of day? ").lower() + +if day=="Sunday": + if(timeOfDay == "morning"): + print("Suggestion: Good Morning, it's a great time to go for a walk!") + elif(timeOfDay == "afternoon"): + print("Suggestion: It's time for lunch.") + elif(timeOfDay == "evening"): + print("Suggestion: Good evening, it's time to make dinner!") + + +elif day=="Monday": + if(timeOfDay =='morning'): + print("Suggestion: Morning, it's a great time to make Pancakes for Breakfast!") + elif(timeOfDay == "afternoon"): + print("Suggestion: Good afternoon, it's a great time to read a book!") + elif(timeOfDay == "evening"): + print("Suggestion: Good evening, it's a great time to go to a friend's house.") + + +elif day=="Tuesday": + if(timeOfDay =='morning'): + print("Suggestion: Morning, it's a great time to go to a Cafe for Breakfast!") + elif(timeOfDay == "afternoon"): + print("Suggestion: Good afternoon, it's a great time to go to lunch!") + elif(timeOfDay == "evening"): + print("Suggestion: Good evening, it's a great time to go to the gym!") + + +elif day=="Wednesday": + if(timeOfDay =='morning'): + print("Suggestion: Morning, it's a great time to go for a run!") + elif(timeOfDay == "afternoon"): + print("Suggestion: Good afternoon, it's a great time to go to the grocery store.") + elif(timeOfDay == "evening"): + print("Suggestion: Good evening, it's a great time to a restaurant!") + + +elif day=="Thursday": + if(timeOfDay =='morning'): + print("Suggestion: Morning, it's a great time to have coffee!") + elif(timeOfDay == "afternoon"): + print("Suggestion: Good afternoon, it's a great time to go to the post office.") + elif(timeOfDay == "evening"): + print("Suggestion: Good evening, it's a great time to walk the dog!!") + + +elif day=="Friday": + if(timeOfDay =='morning'): + print("Suggestion: Morning, it's a great time to exercise!") + elif(timeOfDay == "afternoon"): + print("Suggestion: Good afternoon, it's a great time to play Ping Pong.") + elif(timeOfDay == "evening"): + print("Suggestion: Good evening, it's a great time to watch TV!") + + +elif day=="Saturday": + if(timeOfDay =='morning'): + print("Suggestion: Morning, it's a great time watch the news!") + elif(timeOfDay == "afternoon"): + print("Suggestion: Good afternoon, it's a great time to go for Ice Cream!") + elif(timeOfDay == "evening"): + print("Suggestion: Good evening, it's a great time to watch a movie!") + +else: + print("Sorry, I don't recognize that day. Try: Monday, Tuesday, Wednesday...") \ No newline at end of file diff --git a/week-3/assignment-3/warmup1.py b/week-3/assignment-3/warmup1.py new file mode 100644 index 0000000..eca378a --- /dev/null +++ b/week-3/assignment-3/warmup1.py @@ -0,0 +1,17 @@ +score = 54 + +if score >= 90 and score <=100: + print(f"Score: {score}") + print("Grade: A") +elif score >= 80 and score <=89: + print(f"Score: {score}") + print("Grade: B") +elif score >= 70 and score <=79: + print(f"Score: {score}") + print("Grade: C") +elif score >= 60 and score <=69: + print(f"Score: {score}") + print("Grade: D") +else: + print(f"Score: {score}") + print("Grade: F") diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py new file mode 100644 index 0000000..3328f6e --- /dev/null +++ b/week-3/assignment-3/warmup2.py @@ -0,0 +1,14 @@ +age = int(input("Enter your age:")) + +if age>=0 and age<=12: + print(f"Enter your age: {age}") + print("You are a Child.") +elif age>=13 and age<=17: + print(f"Enter your age: {age}") + print("You are a Teen.") +elif age>=18 and age<=64: + print(f"Enter your age: {age}") + print("You are a Adult.") +else: + print(f"Enter your age: {age}") + print("You are a Senior.") diff --git a/week-3/assignment-3/warmup3.py b/week-3/assignment-3/warmup3.py new file mode 100644 index 0000000..1044339 --- /dev/null +++ b/week-3/assignment-3/warmup3.py @@ -0,0 +1,5 @@ +print(not True and False) #not True is False; False and False is False +print(True or False and False) # The expression is True because of the order of operation. The 'and' statement is evaluated first then the "OR" expressiona and for 'OR' you only need for one expressiont to be true. +print(not (5 > 3)) # 5 is greater than 3 which is True; but the not makes it False +print(10 == 10 and 4 != 4) # 10==10 is True; and 4!=4 is False so the expression is False because with an "and" expression they both have to be true +print(not False or not True) # With an OR expression only one statement has to be True. \ No newline at end of file diff --git a/week-3/assignment-3/warmup4.py b/week-3/assignment-3/warmup4.py new file mode 100644 index 0000000..c398d47 --- /dev/null +++ b/week-3/assignment-3/warmup4.py @@ -0,0 +1,19 @@ +number = int(input("Enter a number: ")) + +if number>0: + print(f"{number} is positive.") + +elif number< 0: + print(f"{number} is negative.") + +else: + print(f"{number} is zero.") + +if number !=0 and number%2 == 0: + print(f"{number} is even.") + +elif number !=0 and number%2 !=0: + print(f"{number} is odd.") + +else: + print(f"{number} is even.") From a34c84b061ef4eb1025342caafb44daa5efe1668 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 12:19:40 -0400 Subject: [PATCH 04/21] adding friendly message to mini-project --- week-3/assignment-3/.gitignore | 1 + week-3/assignment-3/mini-project.py | 26 +++++++++++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 week-3/assignment-3/.gitignore diff --git a/week-3/assignment-3/.gitignore b/week-3/assignment-3/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/week-3/assignment-3/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/week-3/assignment-3/mini-project.py b/week-3/assignment-3/mini-project.py index 747a106..8a7c1a5 100644 --- a/week-3/assignment-3/mini-project.py +++ b/week-3/assignment-3/mini-project.py @@ -8,6 +8,8 @@ print("Suggestion: It's time for lunch.") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's time to make dinner!") + else: + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Monday": @@ -17,7 +19,8 @@ print("Suggestion: Good afternoon, it's a great time to read a book!") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to go to a friend's house.") - + else: + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Tuesday": if(timeOfDay =='morning'): @@ -26,7 +29,8 @@ print("Suggestion: Good afternoon, it's a great time to go to lunch!") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to go to the gym!") - + else: + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Wednesday": if(timeOfDay =='morning'): @@ -35,7 +39,8 @@ print("Suggestion: Good afternoon, it's a great time to go to the grocery store.") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to a restaurant!") - + else: + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Thursday": if(timeOfDay =='morning'): @@ -44,7 +49,8 @@ print("Suggestion: Good afternoon, it's a great time to go to the post office.") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to walk the dog!!") - + else: + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Friday": if(timeOfDay =='morning'): @@ -53,7 +59,8 @@ print("Suggestion: Good afternoon, it's a great time to play Ping Pong.") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to watch TV!") - + else: + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Saturday": if(timeOfDay =='morning'): @@ -62,6 +69,11 @@ print("Suggestion: Good afternoon, it's a great time to go for Ice Cream!") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to watch a movie!") - + else: + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") else: - print("Sorry, I don't recognize that day. Try: Monday, Tuesday, Wednesday...") \ No newline at end of file + print("Sorry, I don't recognize that day. Try: Monday, Tuesday, Wednesday...") + + if(timeOfDay != 'morning' or 'afternoon' or 'evening'): + print("Sorry, I don't recognize that time of day. Try: morning, afternoon or evening.") + From 4bae462baf99e4fffa769e3070138190a343f975 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 12:27:12 -0400 Subject: [PATCH 05/21] adding updates suggested by the AI Review. --- week-3/assignment-3/warmup2.py | 2 +- week-3/assignment-3/warmup4.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index 3328f6e..7b8bc28 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -8,7 +8,7 @@ print("You are a Teen.") elif age>=18 and age<=64: print(f"Enter your age: {age}") - print("You are a Adult.") + print("You are an Adult.") else: print(f"Enter your age: {age}") print("You are a Senior.") diff --git a/week-3/assignment-3/warmup4.py b/week-3/assignment-3/warmup4.py index c398d47..59c9e9d 100644 --- a/week-3/assignment-3/warmup4.py +++ b/week-3/assignment-3/warmup4.py @@ -1,5 +1,7 @@ number = int(input("Enter a number: ")) +# if/elif/else statement 1 for sign + if number>0: print(f"{number} is positive.") @@ -9,11 +11,13 @@ else: print(f"{number} is zero.") +# if/elif/else statement 2 for parity including zero + if number !=0 and number%2 == 0: print(f"{number} is even.") elif number !=0 and number%2 !=0: print(f"{number} is odd.") -else: +elif number ==0: print(f"{number} is even.") From bc422d8d45161b336703f9c7fa025a30819a7c6d Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 12:51:52 -0400 Subject: [PATCH 06/21] adding updates suggested by the AI Review 2. --- .../{mini-project.py => mini_project.py} | 26 ++++++++++++------- week-3/assignment-3/warmup2.py | 2 +- week-3/assignment-3/warmup3.py | 4 +-- week-3/assignment-3/warmup4.py | 2 +- 4 files changed, 21 insertions(+), 13 deletions(-) rename week-3/assignment-3/{mini-project.py => mini_project.py} (84%) diff --git a/week-3/assignment-3/mini-project.py b/week-3/assignment-3/mini_project.py similarity index 84% rename from week-3/assignment-3/mini-project.py rename to week-3/assignment-3/mini_project.py index 8a7c1a5..9c5c1b0 100644 --- a/week-3/assignment-3/mini-project.py +++ b/week-3/assignment-3/mini_project.py @@ -1,7 +1,7 @@ day = input("What day is it? ").capitalize() -timeOfDay = input("What time of day? ").lower() if day=="Sunday": + timeOfDay = input("What time of day? ").lower() if(timeOfDay == "morning"): print("Suggestion: Good Morning, it's a great time to go for a walk!") elif(timeOfDay == "afternoon"): @@ -11,8 +11,9 @@ else: print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") - elif day=="Monday": + timeOfDay = input("What time of day? ").lower() + if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to make Pancakes for Breakfast!") elif(timeOfDay == "afternoon"): @@ -21,8 +22,10 @@ print("Suggestion: Good evening, it's a great time to go to a friend's house.") else: print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") - + elif day=="Tuesday": + timeOfDay = input("What time of day? ").lower() + if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to go to a Cafe for Breakfast!") elif(timeOfDay == "afternoon"): @@ -33,6 +36,8 @@ print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Wednesday": + timeOfDay = input("What time of day? ").lower() + if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to go for a run!") elif(timeOfDay == "afternoon"): @@ -43,30 +48,36 @@ print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Thursday": + timeOfDay = input("What time of day? ").lower() + if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to have coffee!") elif(timeOfDay == "afternoon"): - print("Suggestion: Good afternoon, it's a great time to go to the post office.") + print("Suggestion: Good afternoon, it's a great time to go to the post office.") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to walk the dog!!") else: print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Friday": + timeOfDay = input("What time of day? ").lower() + if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to exercise!") elif(timeOfDay == "afternoon"): - print("Suggestion: Good afternoon, it's a great time to play Ping Pong.") + print("Suggestion: Good afternoon, it's a great time to play Ping Pong.") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to watch TV!") else: print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") elif day=="Saturday": + timeOfDay = input("What time of day? ").lower() + if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time watch the news!") elif(timeOfDay == "afternoon"): - print("Suggestion: Good afternoon, it's a great time to go for Ice Cream!") + print("Suggestion: Good afternoon, it's a great time to go for Ice Cream!") elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to watch a movie!") else: @@ -74,6 +85,3 @@ else: print("Sorry, I don't recognize that day. Try: Monday, Tuesday, Wednesday...") - if(timeOfDay != 'morning' or 'afternoon' or 'evening'): - print("Sorry, I don't recognize that time of day. Try: morning, afternoon or evening.") - diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index 7b8bc28..3328f6e 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -8,7 +8,7 @@ print("You are a Teen.") elif age>=18 and age<=64: print(f"Enter your age: {age}") - print("You are an Adult.") + print("You are a Adult.") else: print(f"Enter your age: {age}") print("You are a Senior.") diff --git a/week-3/assignment-3/warmup3.py b/week-3/assignment-3/warmup3.py index 1044339..57de4e0 100644 --- a/week-3/assignment-3/warmup3.py +++ b/week-3/assignment-3/warmup3.py @@ -1,5 +1,5 @@ print(not True and False) #not True is False; False and False is False -print(True or False and False) # The expression is True because of the order of operation. The 'and' statement is evaluated first then the "OR" expressiona and for 'OR' you only need for one expressiont to be true. +print(True or False and False) # The expression is True because of the order of operation. The 'and' statement is evaluated first with the result of False; then the "OR" expressiona and for 'OR' you only need for one expressiont to be true. print(not (5 > 3)) # 5 is greater than 3 which is True; but the not makes it False print(10 == 10 and 4 != 4) # 10==10 is True; and 4!=4 is False so the expression is False because with an "and" expression they both have to be true -print(not False or not True) # With an OR expression only one statement has to be True. \ No newline at end of file +print(not False or not True) # With an OR expression only one statement has to be True; 'not False' is evaluated as True and 'not True' as False; the expression is TRUE \ No newline at end of file diff --git a/week-3/assignment-3/warmup4.py b/week-3/assignment-3/warmup4.py index 59c9e9d..6f9eaae 100644 --- a/week-3/assignment-3/warmup4.py +++ b/week-3/assignment-3/warmup4.py @@ -19,5 +19,5 @@ elif number !=0 and number%2 !=0: print(f"{number} is odd.") -elif number ==0: +else: print(f"{number} is even.") From 199b846707fc976711379561550d134224b145b0 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 12:55:50 -0400 Subject: [PATCH 07/21] adding updates suggested by the AI Review 3. --- week-3/assignment-3/mini_project.py | 2 +- week-3/assignment-3/warmup2.py | 2 +- week-3/assignment-3/warmup4.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/week-3/assignment-3/mini_project.py b/week-3/assignment-3/mini_project.py index 9c5c1b0..bae8ea4 100644 --- a/week-3/assignment-3/mini_project.py +++ b/week-3/assignment-3/mini_project.py @@ -1,4 +1,4 @@ -day = input("What day is it? ").capitalize() +day = input("What day is it? ").lower() if day=="Sunday": timeOfDay = input("What time of day? ").lower() diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index 3328f6e..7b8bc28 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -8,7 +8,7 @@ print("You are a Teen.") elif age>=18 and age<=64: print(f"Enter your age: {age}") - print("You are a Adult.") + print("You are an Adult.") else: print(f"Enter your age: {age}") print("You are a Senior.") diff --git a/week-3/assignment-3/warmup4.py b/week-3/assignment-3/warmup4.py index 6f9eaae..59c9e9d 100644 --- a/week-3/assignment-3/warmup4.py +++ b/week-3/assignment-3/warmup4.py @@ -19,5 +19,5 @@ elif number !=0 and number%2 !=0: print(f"{number} is odd.") -else: +elif number ==0: print(f"{number} is even.") From d4921fdb5a3ef74c0d181adeafa605c46880e157 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 13:02:40 -0400 Subject: [PATCH 08/21] adding updates suggested by the AI Review 3. --- week-3/assignment-3/warmup1.py | 2 +- week-3/assignment-3/warmup4.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/week-3/assignment-3/warmup1.py b/week-3/assignment-3/warmup1.py index eca378a..f0c60af 100644 --- a/week-3/assignment-3/warmup1.py +++ b/week-3/assignment-3/warmup1.py @@ -12,6 +12,6 @@ elif score >= 60 and score <=69: print(f"Score: {score}") print("Grade: D") -else: +elif score >= 0 and score <=59: print(f"Score: {score}") print("Grade: F") diff --git a/week-3/assignment-3/warmup4.py b/week-3/assignment-3/warmup4.py index 59c9e9d..0ccb778 100644 --- a/week-3/assignment-3/warmup4.py +++ b/week-3/assignment-3/warmup4.py @@ -13,11 +13,9 @@ # if/elif/else statement 2 for parity including zero -if number !=0 and number%2 == 0: +if number%2 == 0: print(f"{number} is even.") -elif number !=0 and number%2 !=0: +elif number%2 !=0: print(f"{number} is odd.") -elif number ==0: - print(f"{number} is even.") From f650354edf94971603ccb8a16a1edb520e3efa03 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 13:13:46 -0400 Subject: [PATCH 09/21] adding updates suggested by the AI Review 4. --- week-3/assignment-3/mini_project.py | 27 +++++++++++++-------------- week-3/assignment-3/warmup1.py | 2 +- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/week-3/assignment-3/mini_project.py b/week-3/assignment-3/mini_project.py index bae8ea4..4cc11f3 100644 --- a/week-3/assignment-3/mini_project.py +++ b/week-3/assignment-3/mini_project.py @@ -1,6 +1,6 @@ day = input("What day is it? ").lower() -if day=="Sunday": +if day=="sunday": timeOfDay = input("What time of day? ").lower() if(timeOfDay == "morning"): print("Suggestion: Good Morning, it's a great time to go for a walk!") @@ -9,11 +9,10 @@ elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's time to make dinner!") else: - print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") -elif day=="Monday": +elif day=="monday": timeOfDay = input("What time of day? ").lower() - if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to make Pancakes for Breakfast!") elif(timeOfDay == "afternoon"): @@ -21,9 +20,9 @@ elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to go to a friend's house.") else: - print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") -elif day=="Tuesday": +elif day=="tuesday": timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): @@ -33,9 +32,9 @@ elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to go to the gym!") else: - print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") -elif day=="Wednesday": +elif day=="wednesday": timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): @@ -45,7 +44,7 @@ elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to a restaurant!") else: - print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") elif day=="Thursday": timeOfDay = input("What time of day? ").lower() @@ -57,9 +56,9 @@ elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to walk the dog!!") else: - print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") -elif day=="Friday": +elif day=="friday": timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): @@ -69,9 +68,9 @@ elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to watch TV!") else: - print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") -elif day=="Saturday": +elif day=="saturday": timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): @@ -81,7 +80,7 @@ elif(timeOfDay == "evening"): print("Suggestion: Good evening, it's a great time to watch a movie!") else: - print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day on {day}.") + print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") else: print("Sorry, I don't recognize that day. Try: Monday, Tuesday, Wednesday...") diff --git a/week-3/assignment-3/warmup1.py b/week-3/assignment-3/warmup1.py index f0c60af..c8b44dc 100644 --- a/week-3/assignment-3/warmup1.py +++ b/week-3/assignment-3/warmup1.py @@ -1,4 +1,4 @@ -score = 54 +score = int(input("Pick any number between 0 and 100: ")) if score >= 90 and score <=100: print(f"Score: {score}") From d1def7c0946f92ef1247e6922a47720ad094f7ef Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 13:16:39 -0400 Subject: [PATCH 10/21] adding updates suggested by the AI Review 5. --- week-3/assignment-3/mini_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/week-3/assignment-3/mini_project.py b/week-3/assignment-3/mini_project.py index 4cc11f3..0bfa340 100644 --- a/week-3/assignment-3/mini_project.py +++ b/week-3/assignment-3/mini_project.py @@ -46,7 +46,7 @@ else: print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") -elif day=="Thursday": +elif day=="thursday": timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): From 4dfb92fd471edc7d7d9601bbd2e8c3ffaeb8463c Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 13:45:29 -0400 Subject: [PATCH 11/21] adding updates suggested by the AI Review 6. --- week-3/assignment-3/warmup3.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/week-3/assignment-3/warmup3.py b/week-3/assignment-3/warmup3.py index 57de4e0..8a752d9 100644 --- a/week-3/assignment-3/warmup3.py +++ b/week-3/assignment-3/warmup3.py @@ -1,5 +1,5 @@ print(not True and False) #not True is False; False and False is False -print(True or False and False) # The expression is True because of the order of operation. The 'and' statement is evaluated first with the result of False; then the "OR" expressiona and for 'OR' you only need for one expressiont to be true. -print(not (5 > 3)) # 5 is greater than 3 which is True; but the not makes it False -print(10 == 10 and 4 != 4) # 10==10 is True; and 4!=4 is False so the expression is False because with an "and" expression they both have to be true -print(not False or not True) # With an OR expression only one statement has to be True; 'not False' is evaluated as True and 'not True' as False; the expression is TRUE \ No newline at end of file +print(True or False and False) # True or False is True; And False is False +print(not (5 > 3)) # 5 is greater than 3 which is True; Not True is False +print(10 == 10 and 4 != 4) # 10==10 is True; and 4!=4 is False; True and False is False +print(not False or not True) # Not False is True; not True is False; True or False is True \ No newline at end of file From bdb834a6d0163bd3fa5e47a225b25ae8440c2bf1 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 13:51:33 -0400 Subject: [PATCH 12/21] adding updates suggested by the AI Review 7 adding parity for zero. --- week-3/assignment-3/warmup4.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/week-3/assignment-3/warmup4.py b/week-3/assignment-3/warmup4.py index 0ccb778..4793a89 100644 --- a/week-3/assignment-3/warmup4.py +++ b/week-3/assignment-3/warmup4.py @@ -13,9 +13,12 @@ # if/elif/else statement 2 for parity including zero -if number%2 == 0: +if number !=0 and number%2 == 0: print(f"{number} is even.") -elif number%2 !=0: +elif number !=0 and number%2 !=0: print(f"{number} is odd.") +elif number ==0: + print(f"{number} is even.") + From e6c5931c0ea4efee433926a2d4a0d3e5458df495 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 13:55:03 -0400 Subject: [PATCH 13/21] adding updates suggested by the AI Review 7 changing text for enter your age. --- week-3/assignment-3/warmup2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index 7b8bc28..8657837 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -1,14 +1,14 @@ age = int(input("Enter your age:")) if age>=0 and age<=12: - print(f"Enter your age: {age}") + print(f"Your age is {age}.") print("You are a Child.") elif age>=13 and age<=17: - print(f"Enter your age: {age}") + print(f"Your age is {age}.") print("You are a Teen.") elif age>=18 and age<=64: - print(f"Enter your age: {age}") + print(f"Your age is {age}.") print("You are an Adult.") else: - print(f"Enter your age: {age}") + print(f"Your age is {age}.") print("You are a Senior.") From 95cf8791410978ebcc859411fb7280787dfce3f4 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 13:57:26 -0400 Subject: [PATCH 14/21] adding updates suggested by the AI Review 7 changing text for enter your age. --- week-3/assignment-3/warmup4.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/week-3/assignment-3/warmup4.py b/week-3/assignment-3/warmup4.py index 4793a89..0914cda 100644 --- a/week-3/assignment-3/warmup4.py +++ b/week-3/assignment-3/warmup4.py @@ -10,6 +10,7 @@ else: print(f"{number} is zero.") + print(f"{number} is even." # if/elif/else statement 2 for parity including zero @@ -19,6 +20,4 @@ elif number !=0 and number%2 !=0: print(f"{number} is odd.") -elif number ==0: - print(f"{number} is even.") - + ) From 8857c92e81de30601d7baf8127979d0acec6d1e4 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 14:00:46 -0400 Subject: [PATCH 15/21] adding updates suggested by the AI Review 8 --- week-3/assignment-3/warmup2.py | 8 ++++---- week-3/assignment-3/warmup4.py | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index 8657837..cb69451 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -1,14 +1,14 @@ age = int(input("Enter your age:")) if age>=0 and age<=12: - print(f"Your age is {age}.") + #print(f"Your age is {age}.") print("You are a Child.") elif age>=13 and age<=17: - print(f"Your age is {age}.") + #print(f"Your age is {age}.") print("You are a Teen.") elif age>=18 and age<=64: - print(f"Your age is {age}.") + #print(f"Your age is {age}.") print("You are an Adult.") else: - print(f"Your age is {age}.") + #print(f"Your age is {age}.") print("You are a Senior.") diff --git a/week-3/assignment-3/warmup4.py b/week-3/assignment-3/warmup4.py index 0914cda..403b834 100644 --- a/week-3/assignment-3/warmup4.py +++ b/week-3/assignment-3/warmup4.py @@ -10,7 +10,7 @@ else: print(f"{number} is zero.") - print(f"{number} is even." + # if/elif/else statement 2 for parity including zero @@ -20,4 +20,5 @@ elif number !=0 and number%2 !=0: print(f"{number} is odd.") - ) +elif number == 0: + print(f"{number} is even.") From be29fbc4687a014e1c008e9745bbcc9e6f5bc93f Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 14:09:19 -0400 Subject: [PATCH 16/21] adding updates suggested by the AI Review 9 --- week-3/assignment-3/warmup2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index cb69451..2b98608 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -2,13 +2,13 @@ if age>=0 and age<=12: #print(f"Your age is {age}.") - print("You are a Child.") + print("Child.") elif age>=13 and age<=17: #print(f"Your age is {age}.") - print("You are a Teen.") + print("Teen.") elif age>=18 and age<=64: #print(f"Your age is {age}.") - print("You are an Adult.") + print("Adult.") else: #print(f"Your age is {age}.") - print("You are a Senior.") + print("Senior.") From c85ac91ab95cd0338c1ed60ceb0f17b32f68b030 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 14:10:53 -0400 Subject: [PATCH 17/21] adding updates suggested by the AI Review 10 --- week-3/assignment-3/warmup2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index 2b98608..cb69451 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -2,13 +2,13 @@ if age>=0 and age<=12: #print(f"Your age is {age}.") - print("Child.") + print("You are a Child.") elif age>=13 and age<=17: #print(f"Your age is {age}.") - print("Teen.") + print("You are a Teen.") elif age>=18 and age<=64: #print(f"Your age is {age}.") - print("Adult.") + print("You are an Adult.") else: #print(f"Your age is {age}.") - print("Senior.") + print("You are a Senior.") From 9a830764f9eb43c365dcdf852022f3260fa44ad8 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 14:14:31 -0400 Subject: [PATCH 18/21] adding updates suggested by the AI Review 11 --- week-3/assignment-3/warmup2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index cb69451..a8bd54c 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -9,6 +9,6 @@ elif age>=18 and age<=64: #print(f"Your age is {age}.") print("You are an Adult.") -else: +elif age>=65 and age<=125: #print(f"Your age is {age}.") print("You are a Senior.") From e00257c484168ebb3fc787c94cfa0711aeddea0b Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 20:22:14 -0400 Subject: [PATCH 19/21] adding updates suggested by the AI Review 12 --- week-3/assignment-3/mini_project.py | 16 +++++++++------- week-3/assignment-3/warmup2.py | 6 ++++-- week-3/assignment-3/warmup3.py | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/week-3/assignment-3/mini_project.py b/week-3/assignment-3/mini_project.py index 0bfa340..294f331 100644 --- a/week-3/assignment-3/mini_project.py +++ b/week-3/assignment-3/mini_project.py @@ -1,7 +1,9 @@ day = input("What day is it? ").lower() +timeOfDay = input("What time of day? ").lower() + if day=="sunday": - timeOfDay = input("What time of day? ").lower() + #timeOfDay = input("What time of day? ").lower() if(timeOfDay == "morning"): print("Suggestion: Good Morning, it's a great time to go for a walk!") elif(timeOfDay == "afternoon"): @@ -12,7 +14,7 @@ print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") elif day=="monday": - timeOfDay = input("What time of day? ").lower() + #timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to make Pancakes for Breakfast!") elif(timeOfDay == "afternoon"): @@ -23,7 +25,7 @@ print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") elif day=="tuesday": - timeOfDay = input("What time of day? ").lower() + #timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to go to a Cafe for Breakfast!") @@ -35,7 +37,7 @@ print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") elif day=="wednesday": - timeOfDay = input("What time of day? ").lower() + #timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to go for a run!") @@ -47,7 +49,7 @@ print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") elif day=="thursday": - timeOfDay = input("What time of day? ").lower() + #timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to have coffee!") @@ -59,7 +61,7 @@ print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") elif day=="friday": - timeOfDay = input("What time of day? ").lower() + #timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time to exercise!") @@ -71,7 +73,7 @@ print(f"Sorry, I don't recognize that time of day. Try: morning, afternoon or evening for the time of day.") elif day=="saturday": - timeOfDay = input("What time of day? ").lower() + #timeOfDay = input("What time of day? ").lower() if(timeOfDay =='morning'): print("Suggestion: Morning, it's a great time watch the news!") diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index a8bd54c..6d3cd8c 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -1,5 +1,6 @@ -age = int(input("Enter your age:")) +#age = int(input("Enter your age:")) +age = 54 if age>=0 and age<=12: #print(f"Your age is {age}.") print("You are a Child.") @@ -9,6 +10,7 @@ elif age>=18 and age<=64: #print(f"Your age is {age}.") print("You are an Adult.") -elif age>=65 and age<=125: +elif age>=65: #print(f"Your age is {age}.") print("You are a Senior.") + diff --git a/week-3/assignment-3/warmup3.py b/week-3/assignment-3/warmup3.py index 8a752d9..03f2c8c 100644 --- a/week-3/assignment-3/warmup3.py +++ b/week-3/assignment-3/warmup3.py @@ -1,5 +1,5 @@ print(not True and False) #not True is False; False and False is False -print(True or False and False) # True or False is True; And False is False +print(True or False and False) # False is False is False; True or False is True; print(not (5 > 3)) # 5 is greater than 3 which is True; Not True is False print(10 == 10 and 4 != 4) # 10==10 is True; and 4!=4 is False; True and False is False print(not False or not True) # Not False is True; not True is False; True or False is True \ No newline at end of file From be501cd6ea43524b763d31889a84350e3d86edb4 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 20:25:49 -0400 Subject: [PATCH 20/21] adding updates suggested by the AI Review 13 asking for the user age. --- week-3/assignment-3/warmup1.py | 4 +++- week-3/assignment-3/warmup2.py | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/week-3/assignment-3/warmup1.py b/week-3/assignment-3/warmup1.py index c8b44dc..f465e55 100644 --- a/week-3/assignment-3/warmup1.py +++ b/week-3/assignment-3/warmup1.py @@ -1,4 +1,6 @@ -score = int(input("Pick any number between 0 and 100: ")) +#score = int(input("Pick any number between 0 and 100: ")) + +score = 54 if score >= 90 and score <=100: print(f"Score: {score}") diff --git a/week-3/assignment-3/warmup2.py b/week-3/assignment-3/warmup2.py index 6d3cd8c..e4d1780 100644 --- a/week-3/assignment-3/warmup2.py +++ b/week-3/assignment-3/warmup2.py @@ -1,6 +1,5 @@ -#age = int(input("Enter your age:")) +age = int(input("Enter your age:")) -age = 54 if age>=0 and age<=12: #print(f"Your age is {age}.") print("You are a Child.") From 2d0f1fe7944a5eac23c45f8d7b327547cdb1ff97 Mon Sep 17 00:00:00 2001 From: kfbmartin Date: Tue, 21 Jul 2026 20:35:30 -0400 Subject: [PATCH 21/21] adding updates suggested by the AI Review 14 --- week-3/assignment-3/warmup4.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/week-3/assignment-3/warmup4.py b/week-3/assignment-3/warmup4.py index 403b834..149600d 100644 --- a/week-3/assignment-3/warmup4.py +++ b/week-3/assignment-3/warmup4.py @@ -14,11 +14,11 @@ # if/elif/else statement 2 for parity including zero -if number !=0 and number%2 == 0: +if number % 2 == 0: print(f"{number} is even.") -elif number !=0 and number%2 !=0: +elif number %2 !=0: print(f"{number} is odd.") -elif number == 0: +else: print(f"{number} is even.")