From 7ea5adfd50c32db4816120dd6734748d08f053a3 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:39:35 -0500 Subject: [PATCH 01/51] Updated from Brython Server: 2/1/2019 2:39:33 PM --- birthday.py | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/birthday.py b/birthday.py index a266f316..741434da 100644 --- a/birthday.py +++ b/birthday.py @@ -1,7 +1,7 @@ """ birthday.py -Author: -Credit: +Author: waSclthu11 +Credit: The conditionals tutorial. Assignment: Your program will ask the user the following questions, in this order: @@ -31,3 +31,34 @@ And the day? 11 Eric, you are a fall baby of the stone age. """ +"""Winter (winter) babies were born in months of December through February. +Spring (spring) babies were born in months of March through May. +Summer (summer) babies were born in the months of June through August. +Fall (fall) babies were born in the months of September through November. +Years from 1980-1989 are known as the eighties. +Years from 1990-1999 are known as the nineties. +Years from 2000 through today are known as the two thousands. +Years prior to 1980 are known as the Stone Age.""" +from datetime import datetime +from calendar import month_name +todaymonth = datetime.today().month +todaydate = datetime.today().day +month = month_name[todaymonth] +name = str(input("Hello, what is your name? ")) +monthquestion = "Hello {0}, what was the name of the month you were born ? " +month = str(input(monthquestion.format(name))) +yearquestion = "And what year were you born in, {0}? " +year = str(input(yearquestion.format(name))) +day = int(input("And the day?")) + +if (month == "June" or "june" or "July" or 'july' or 'august' or 'August'): + season="Summer" +elif (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): + season="Fall" +elif (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): + season="Winter" +elif (month == March or march or April or april or May or may): + season="Spring" +else: + print("You managed to spell something wrong and I'm incredibly dissapointed in you") +#print(name +", you are a" + season + "baby of the" + age + ".") \ No newline at end of file From 58ceaad6306d590f52f2da8524e4031155559f17 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:39:37 -0500 Subject: [PATCH 02/51] Updated from Brython Server: 2/1/2019 2:39:36 PM From 62a5613f49b288a8d34629948f81a608808a5f47 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:50:41 -0500 Subject: [PATCH 03/51] Updated from Brython Server: 2/1/2019 2:50:40 PM --- birthday.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/birthday.py b/birthday.py index 741434da..a67ba7e3 100644 --- a/birthday.py +++ b/birthday.py @@ -50,7 +50,8 @@ yearquestion = "And what year were you born in, {0}? " year = str(input(yearquestion.format(name))) day = int(input("And the day?")) - +currentyear = datetime.today().year +print(currentyear) if (month == "June" or "june" or "July" or 'july' or 'august' or 'August'): season="Summer" elif (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): @@ -61,4 +62,12 @@ season="Spring" else: print("You managed to spell something wrong and I'm incredibly dissapointed in you") +if (year < 1980): + age="Stone Age" +elif (year>=1980 and year<=1989): + age="eighties" +elif (year >= 1990 and year <=1999): + age="nineties" +elif (year >=2000 and <=currentyear): + age="two thousands" #print(name +", you are a" + season + "baby of the" + age + ".") \ No newline at end of file From 6735a7fc0713259c7f707ee91fa72b999a26c07c Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:51:23 -0500 Subject: [PATCH 04/51] Updated from Brython Server: 2/1/2019 2:51:21 PM --- birthday.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/birthday.py b/birthday.py index a67ba7e3..3aa031fd 100644 --- a/birthday.py +++ b/birthday.py @@ -68,6 +68,6 @@ age="eighties" elif (year >= 1990 and year <=1999): age="nineties" -elif (year >=2000 and <=currentyear): - age="two thousands" +#elif (year >=2000 and <= currentyear): + #age="two thousands" #print(name +", you are a" + season + "baby of the" + age + ".") \ No newline at end of file From c8ff6b8b80f9ca858215568ea57e0e5a973a7619 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:53:48 -0500 Subject: [PATCH 05/51] Updated from Brython Server: 2/1/2019 2:53:46 PM --- birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birthday.py b/birthday.py index 3aa031fd..1f7331a4 100644 --- a/birthday.py +++ b/birthday.py @@ -48,7 +48,7 @@ monthquestion = "Hello {0}, what was the name of the month you were born ? " month = str(input(monthquestion.format(name))) yearquestion = "And what year were you born in, {0}? " -year = str(input(yearquestion.format(name))) +year = int(input(yearquestion.format(name))) day = int(input("And the day?")) currentyear = datetime.today().year print(currentyear) From 32cf3bf139dc9e6ff669319245df4af981f0031e Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:55:04 -0500 Subject: [PATCH 06/51] Updated from Brython Server: 2/1/2019 2:55:03 PM --- birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birthday.py b/birthday.py index 1f7331a4..6ad72d5a 100644 --- a/birthday.py +++ b/birthday.py @@ -48,7 +48,7 @@ monthquestion = "Hello {0}, what was the name of the month you were born ? " month = str(input(monthquestion.format(name))) yearquestion = "And what year were you born in, {0}? " -year = int(input(yearquestion.format(name))) +year = (int(input(yearquestion.format(name)))) day = int(input("And the day?")) currentyear = datetime.today().year print(currentyear) From 8037084b1a44fbea80e91c10e8474e59dd867313 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:55:14 -0500 Subject: [PATCH 07/51] Updated from Brython Server: 2/1/2019 2:55:12 PM --- birthday.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/birthday.py b/birthday.py index 6ad72d5a..5873ded5 100644 --- a/birthday.py +++ b/birthday.py @@ -68,6 +68,6 @@ age="eighties" elif (year >= 1990 and year <=1999): age="nineties" -#elif (year >=2000 and <= currentyear): - #age="two thousands" +elif (year >=2000 and <= currentyear): + age="two thousands" #print(name +", you are a" + season + "baby of the" + age + ".") \ No newline at end of file From 04aab3d71d969859c921fef23a2b0195c5e1dedd Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:55:55 -0500 Subject: [PATCH 08/51] Updated from Brython Server: 2/1/2019 2:55:53 PM --- birthday.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/birthday.py b/birthday.py index 5873ded5..3435dd76 100644 --- a/birthday.py +++ b/birthday.py @@ -51,7 +51,7 @@ year = (int(input(yearquestion.format(name)))) day = int(input("And the day?")) currentyear = datetime.today().year -print(currentyear) +currentyear = int(currentyear) if (month == "June" or "june" or "July" or 'july' or 'august' or 'August'): season="Summer" elif (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): @@ -68,6 +68,6 @@ age="eighties" elif (year >= 1990 and year <=1999): age="nineties" -elif (year >=2000 and <= currentyear): +elif (year >=2000 and <=currentyear): age="two thousands" #print(name +", you are a" + season + "baby of the" + age + ".") \ No newline at end of file From 2ce193621e2c78a8c22b4fb1aa450572a4352db4 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:56:32 -0500 Subject: [PATCH 09/51] Updated from Brython Server: 2/1/2019 2:56:31 PM --- birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birthday.py b/birthday.py index 3435dd76..50a8861b 100644 --- a/birthday.py +++ b/birthday.py @@ -68,6 +68,6 @@ age="eighties" elif (year >= 1990 and year <=1999): age="nineties" -elif (year >=2000 and <=currentyear): +elif (year >=2000 and year <=currentyear): age="two thousands" #print(name +", you are a" + season + "baby of the" + age + ".") \ No newline at end of file From 2f3741d2b7975e24333a86019b4faef76d00693b Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:04:17 -0500 Subject: [PATCH 10/51] Updated from Brython Server: 2/4/2019 2:04:16 PM --- birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birthday.py b/birthday.py index 50a8861b..ca3271c4 100644 --- a/birthday.py +++ b/birthday.py @@ -70,4 +70,4 @@ age="nineties" elif (year >=2000 and year <=currentyear): age="two thousands" -#print(name +", you are a" + season + "baby of the" + age + ".") \ No newline at end of file +print(name +", you are a " + season + " baby of the " + age + ".") \ No newline at end of file From a7a02d4b597b76d13b9d467d9f7f80e8aeb2b62e Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:04:19 -0500 Subject: [PATCH 11/51] Updated from Brython Server: 2/4/2019 2:04:19 PM From 917a9d105fb2ef325eebed7dd05cf4332dc00fef Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:05:42 -0500 Subject: [PATCH 12/51] Updated from Brython Server: 2/4/2019 2:05:42 PM From 745e72821ab4627c02b3623c4196a058185e44e7 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:06:53 -0500 Subject: [PATCH 13/51] Updated from Brython Server: 2/4/2019 2:06:53 PM --- birthday.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/birthday.py b/birthday.py index ca3271c4..54064dd6 100644 --- a/birthday.py +++ b/birthday.py @@ -70,4 +70,6 @@ age="nineties" elif (year >=2000 and year <=currentyear): age="two thousands" +elif (year > currentyear): + age="The Future" print(name +", you are a " + season + " baby of the " + age + ".") \ No newline at end of file From f55a56dd2841a55745f40a3a43798f1d7d3d75fa Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:07:34 -0500 Subject: [PATCH 14/51] Updated from Brython Server: 2/4/2019 2:07:33 PM From 9bb20899c9b04d4b238a958182133c72af00374e Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:25:18 -0500 Subject: [PATCH 15/51] Updated from Brython Server: 2/4/2019 2:25:18 PM --- birthday.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/birthday.py b/birthday.py index 54064dd6..adb2e7e4 100644 --- a/birthday.py +++ b/birthday.py @@ -60,8 +60,8 @@ season="Winter" elif (month == March or march or April or april or May or may): season="Spring" -else: - print("You managed to spell something wrong and I'm incredibly dissapointed in you") +if (todaydate == day): + print("Happy Birthday!") if (year < 1980): age="Stone Age" elif (year>=1980 and year<=1989): @@ -72,4 +72,4 @@ age="two thousands" elif (year > currentyear): age="The Future" -print(name +", you are a " + season + " baby of the " + age + ".") \ No newline at end of file +print( name +", you are a " + season + " baby of the " + age + ".") \ No newline at end of file From 1e39bc26cbd6bf6ad04f6538af69f9527556ce25 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:30:11 -0500 Subject: [PATCH 16/51] Updated from Brython Server: 2/4/2019 2:30:11 PM --- birthday.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/birthday.py b/birthday.py index adb2e7e4..f20215a9 100644 --- a/birthday.py +++ b/birthday.py @@ -62,14 +62,15 @@ season="Spring" if (todaydate == day): print("Happy Birthday!") -if (year < 1980): - age="Stone Age" -elif (year>=1980 and year<=1989): - age="eighties" -elif (year >= 1990 and year <=1999): - age="nineties" -elif (year >=2000 and year <=currentyear): - age="two thousands" -elif (year > currentyear): - age="The Future" -print( name +", you are a " + season + " baby of the " + age + ".") \ No newline at end of file +if (todaydate > day or todaydate < day): + if (year < 1980): + age="Stone Age" + elif (year>=1980 and year<=1989): + age="eighties" + elif (year >= 1990 and year <=1999): + age="nineties" + elif (year >=2000 and year <=currentyear): + age="two thousands" + elif (year > currentyear): + age="The Future" + print( name +", you are a " + season + " baby of the " + age + ".") From 40538f0875fdf44911c9998b0039d36260abf69a Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:41:57 -0500 Subject: [PATCH 17/51] Updated from Brython Server: 2/4/2019 2:41:56 PM --- birthday.py | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/birthday.py b/birthday.py index f20215a9..d3b60531 100644 --- a/birthday.py +++ b/birthday.py @@ -49,9 +49,10 @@ month = str(input(monthquestion.format(name))) yearquestion = "And what year were you born in, {0}? " year = (int(input(yearquestion.format(name)))) -day = int(input("And the day?")) +day = int(input("And the day? ")) currentyear = datetime.today().year currentyear = int(currentyear) +print (month) if (month == "June" or "june" or "July" or 'july' or 'august' or 'August'): season="Summer" elif (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): @@ -63,14 +64,19 @@ if (todaydate == day): print("Happy Birthday!") if (todaydate > day or todaydate < day): - if (year < 1980): - age="Stone Age" - elif (year>=1980 and year<=1989): - age="eighties" - elif (year >= 1990 and year <=1999): - age="nineties" - elif (year >=2000 and year <=currentyear): - age="two thousands" - elif (year > currentyear): - age="The Future" - print( name +", you are a " + season + " baby of the " + age + ".") + if (day == 31 and month == 'October' or 'october'): + print ("You were born on Halloween!") + else: + if (year < 1980): + age="Stone Age" + elif (year>=1980 and year<=1989): + age="eighties" + elif (year >= 1990 and year <=1999): + age="nineties" + elif (year >=2000 and year <=currentyear): + age="two thousands" + elif (year > currentyear): + age="The Future" + print( name +", you are a " + season + " baby of the " + age + ".") + + \ No newline at end of file From da1e5d80d7f93b72422b91b6d8a0dfc8677a871b Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:42:00 -0500 Subject: [PATCH 18/51] Updated from Brython Server: 2/4/2019 2:41:59 PM From ccba88542702411d8c3fe3aafea6e5ab10ae29ff Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:47:52 -0500 Subject: [PATCH 19/51] Updated from Brython Server: 2/4/2019 2:47:52 PM From 0d8782319ac607af909d20532ab1c3f52b72c07a Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Mon, 4 Feb 2019 14:51:11 -0500 Subject: [PATCH 20/51] Updated from Brython Server: 2/4/2019 2:51:10 PM From 43f30d95b709e6357b6c5163ccacdd92dd385a29 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 10:19:49 -0500 Subject: [PATCH 21/51] Updated from Brython Server: 2/5/2019 10:19:49 AM From e2df2efc76df8c070385dade218a03dffa998bd1 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 13:24:26 -0500 Subject: [PATCH 22/51] Updated from Brython Server: 2/5/2019 1:24:25 PM From 96775a75a3be7b9eef7b68e7ba96795439b3a418 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 13:24:32 -0500 Subject: [PATCH 23/51] Updated from Brython Server: 2/5/2019 1:24:30 PM From 0bd2332309546ebe61226c6c03d5d43741c730d3 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:00:32 -0500 Subject: [PATCH 24/51] Updated from Brython Server: 2/5/2019 2:00:31 PM From ca5b858b89c3da13bb13101cdfa65690a4f151b2 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:03:31 -0500 Subject: [PATCH 25/51] Updated from Brython Server: 2/5/2019 2:03:30 PM --- birthday.py | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/birthday.py b/birthday.py index d3b60531..3e63f865 100644 --- a/birthday.py +++ b/birthday.py @@ -61,22 +61,21 @@ season="Winter" elif (month == March or march or April or april or May or may): season="Spring" +if (year < 1980): + age="Stone Age" +elif (year>=1980 and year<=1989): + age="eighties" +elif (year >= 1990 and year <=1999): + age="nineties" +elif (year >=2000 and year <=currentyear): + age="two thousands" +elif (year > currentyear): + age="The Future" if (todaydate == day): print("Happy Birthday!") if (todaydate > day or todaydate < day): if (day == 31 and month == 'October' or 'october'): print ("You were born on Halloween!") - else: - if (year < 1980): - age="Stone Age" - elif (year>=1980 and year<=1989): - age="eighties" - elif (year >= 1990 and year <=1999): - age="nineties" - elif (year >=2000 and year <=currentyear): - age="two thousands" - elif (year > currentyear): - age="The Future" - print( name +", you are a " + season + " baby of the " + age + ".") +print( name +", you are a " + season + " baby of the " + age + ".") \ No newline at end of file From 92c41c3005ee8738e97eac54faca3fb2766ccbce Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:03:41 -0500 Subject: [PATCH 26/51] Updated from Brython Server: 2/5/2019 2:03:41 PM --- birthday.py | 1 - 1 file changed, 1 deletion(-) diff --git a/birthday.py b/birthday.py index 3e63f865..b515a678 100644 --- a/birthday.py +++ b/birthday.py @@ -52,7 +52,6 @@ day = int(input("And the day? ")) currentyear = datetime.today().year currentyear = int(currentyear) -print (month) if (month == "June" or "june" or "July" or 'july' or 'august' or 'August'): season="Summer" elif (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): From 2ccc8efea7f41dac7ab506587dbbbc2945d446f1 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:04:42 -0500 Subject: [PATCH 27/51] Updated from Brython Server: 2/5/2019 2:04:42 PM --- birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birthday.py b/birthday.py index b515a678..81388e27 100644 --- a/birthday.py +++ b/birthday.py @@ -73,7 +73,7 @@ if (todaydate == day): print("Happy Birthday!") if (todaydate > day or todaydate < day): - if (day == 31 and month == 'October' or 'october'): + if (day == 31 and (month == 'October' or month == 'october')): print ("You were born on Halloween!") print( name +", you are a " + season + " baby of the " + age + ".") From 3cf77dfb8d89a3ed9b9f733138d30d0a8495625b Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:06:08 -0500 Subject: [PATCH 28/51] Updated from Brython Server: 2/5/2019 2:06:07 PM From c158a302e108fc902a5f5b2995aa50fffe595c8d Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:06:12 -0500 Subject: [PATCH 29/51] Updated from Brython Server: 2/5/2019 2:06:11 PM From e93d409803a9004cb5454d8f4085b68a8c7e6413 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:37:47 -0500 Subject: [PATCH 30/51] Updated from Brython Server: 2/5/2019 2:37:47 PM --- birthday.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/birthday.py b/birthday.py index 81388e27..19488c46 100644 --- a/birthday.py +++ b/birthday.py @@ -75,6 +75,7 @@ if (todaydate > day or todaydate < day): if (day == 31 and (month == 'October' or month == 'october')): print ("You were born on Halloween!") -print( name +", you are a " + season + " baby of the " + age + ".") +if (todaydate > day or todaydate < day): + print( name +", you are a " + season + " baby of the " + age + ".") \ No newline at end of file From 001fe9e6b351c3248956efad646e1a51ac443c8d Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:37:55 -0500 Subject: [PATCH 31/51] Updated from Brython Server: 2/5/2019 2:37:54 PM From 0f644a3b022d1f4d38a547ce7c9080d3a413ca8d Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:37:56 -0500 Subject: [PATCH 32/51] Updated from Brython Server: 2/5/2019 2:37:55 PM From 892e13bbaf0888e64211d533b5d3ac418fea77ca Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:46:57 -0500 Subject: [PATCH 33/51] Updated from Brython Server: 2/5/2019 2:46:57 PM From ff41295c9f088e548004bb3c28852a34cc41e227 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:47:00 -0500 Subject: [PATCH 34/51] Updated from Brython Server: 2/5/2019 2:46:59 PM From 7d111d527ea6d4136f72cedae0ec4881d8440260 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:49:33 -0500 Subject: [PATCH 35/51] Updated from Brython Server: 2/5/2019 2:49:32 PM --- birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birthday.py b/birthday.py index 19488c46..a4e1b1aa 100644 --- a/birthday.py +++ b/birthday.py @@ -45,7 +45,7 @@ todaydate = datetime.today().day month = month_name[todaymonth] name = str(input("Hello, what is your name? ")) -monthquestion = "Hello {0}, what was the name of the month you were born ? " +monthquestion = "Hi {0}, what was the name of the month you were born ? " month = str(input(monthquestion.format(name))) yearquestion = "And what year were you born in, {0}? " year = (int(input(yearquestion.format(name)))) From 0a3be656b25b36908bf0f995fe5021e12ccebb76 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:49:35 -0500 Subject: [PATCH 36/51] Updated from Brython Server: 2/5/2019 2:49:34 PM From f23ae78984d4f8f300ab49a2355eec2e6659fdd7 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:54:53 -0500 Subject: [PATCH 37/51] Updated from Brython Server: 2/5/2019 2:54:52 PM From 8069eb3e6fad8c084ac1215626b557d58c5b10d7 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Wed, 6 Feb 2019 09:09:27 -0500 Subject: [PATCH 38/51] Updated from Brython Server: 2/6/2019 9:09:26 AM --- birthday.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/birthday.py b/birthday.py index a4e1b1aa..eb0bac0b 100644 --- a/birthday.py +++ b/birthday.py @@ -54,11 +54,11 @@ currentyear = int(currentyear) if (month == "June" or "june" or "July" or 'july' or 'august' or 'August'): season="Summer" -elif (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): +if (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): season="Fall" -elif (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): +if (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): season="Winter" -elif (month == March or march or April or april or May or may): +if (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): season="Spring" if (year < 1980): age="Stone Age" From 63b4c37d14ea667aaa7acd608faf192c25fb2721 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Wed, 6 Feb 2019 09:09:29 -0500 Subject: [PATCH 39/51] Updated from Brython Server: 2/6/2019 9:09:29 AM From 2d21ea3d11586fa7d4db55adc114c954340e45b2 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Thu, 7 Feb 2019 13:56:55 -0500 Subject: [PATCH 40/51] Updated from Brython Server: 2/7/2019 1:56:54 PM From 76c0366bddb76f63db29195d735d6a85648938ab Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Thu, 7 Feb 2019 14:05:30 -0500 Subject: [PATCH 41/51] Updated from Brython Server: 2/7/2019 2:05:29 PM --- birthday.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/birthday.py b/birthday.py index eb0bac0b..383e3e02 100644 --- a/birthday.py +++ b/birthday.py @@ -45,7 +45,7 @@ todaydate = datetime.today().day month = month_name[todaymonth] name = str(input("Hello, what is your name? ")) -monthquestion = "Hi {0}, what was the name of the month you were born ? " +monthquestion = "Hi {0}, what was the name of the month you were born in? " month = str(input(monthquestion.format(name))) yearquestion = "And what year were you born in, {0}? " year = (int(input(yearquestion.format(name)))) @@ -75,7 +75,7 @@ if (todaydate > day or todaydate < day): if (day == 31 and (month == 'October' or month == 'october')): print ("You were born on Halloween!") -if (todaydate > day or todaydate < day): - print( name +", you are a " + season + " baby of the " + age + ".") + else: + print( name +", you are a " + season + " baby of the " + age + ".") \ No newline at end of file From 5f8b319604a76635c7051ca80f61f18691f33d73 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Thu, 7 Feb 2019 14:32:21 -0500 Subject: [PATCH 42/51] Updated from Brython Server: 2/7/2019 2:32:19 PM --- birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birthday.py b/birthday.py index 383e3e02..1f08c411 100644 --- a/birthday.py +++ b/birthday.py @@ -71,7 +71,7 @@ elif (year > currentyear): age="The Future" if (todaydate == day): - print("Happy Birthday!") + print("Happy birthday!") if (todaydate > day or todaydate < day): if (day == 31 and (month == 'October' or month == 'october')): print ("You were born on Halloween!") From 4d29d1e225818623f8e1c753e5bc3ba00ab9db1b Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Thu, 7 Feb 2019 14:44:05 -0500 Subject: [PATCH 43/51] Updated from Brython Server: 2/7/2019 2:44:04 PM From 34655b6735e8e0ce65ddb8f4aa35f41fd7645e5b Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Thu, 7 Feb 2019 14:49:34 -0500 Subject: [PATCH 44/51] Updated from Brython Server: 2/7/2019 2:49:34 PM --- birthday.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/birthday.py b/birthday.py index 1f08c411..8db61c02 100644 --- a/birthday.py +++ b/birthday.py @@ -53,15 +53,15 @@ currentyear = datetime.today().year currentyear = int(currentyear) if (month == "June" or "june" or "July" or 'july' or 'august' or 'August'): - season="Summer" + season="summer" if (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): - season="Fall" + season="fall" if (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): - season="Winter" + season="winter" if (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): - season="Spring" + season="spring" if (year < 1980): - age="Stone Age" + age="stone Age" elif (year>=1980 and year<=1989): age="eighties" elif (year >= 1990 and year <=1999): From 18fee169b8edb744fbe618d846d61bcfbad1c3d9 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 8 Feb 2019 09:47:41 -0500 Subject: [PATCH 45/51] Updated from Brython Server: 2/8/2019 9:47:40 AM --- birthday.py | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/birthday.py b/birthday.py index 8db61c02..2e689241 100644 --- a/birthday.py +++ b/birthday.py @@ -47,35 +47,43 @@ name = str(input("Hello, what is your name? ")) monthquestion = "Hi {0}, what was the name of the month you were born in? " month = str(input(monthquestion.format(name))) +month=month yearquestion = "And what year were you born in, {0}? " year = (int(input(yearquestion.format(name)))) day = int(input("And the day? ")) currentyear = datetime.today().year currentyear = int(currentyear) -if (month == "June" or "june" or "July" or 'july' or 'august' or 'August'): - season="summer" -if (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): - season="fall" -if (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): - season="winter" -if (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): - season="spring" +if (month == 'June' or 'june' or 'July' or 'july' or 'august' or 'August'): + season='summer' + else: + if (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): + season="fall" + else: + if (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): + season="winter" + else: + if (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): + season="spring" if (year < 1980): age="stone Age" -elif (year>=1980 and year<=1989): - age="eighties" -elif (year >= 1990 and year <=1999): - age="nineties" -elif (year >=2000 and year <=currentyear): - age="two thousands" -elif (year > currentyear): - age="The Future" +else: + if (year>=1980 and year<=1989): + age="eighties" + else: + if (year >= 1990 and year <=1999): + age="nineties" + else: + if (year >=2000 and year <=currentyear): + age="two thousands" + else: + if (year > currentyear): + age="The Future" if (todaydate == day): print("Happy birthday!") -if (todaydate > day or todaydate < day): +elif (todaydate > day or todaydate < day): if (day == 31 and (month == 'October' or month == 'october')): print ("You were born on Halloween!") else: - print( name +", you are a " + season + " baby of the " + age + ".") + print( name +", you are a {0} baby of the ".format(season) + age + ".") \ No newline at end of file From 87301f3fa1c809b711d564e217840b88eda2a478 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 8 Feb 2019 09:48:17 -0500 Subject: [PATCH 46/51] Updated from Brython Server: 2/8/2019 9:48:16 AM --- birthday.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/birthday.py b/birthday.py index 2e689241..962db491 100644 --- a/birthday.py +++ b/birthday.py @@ -55,15 +55,15 @@ currentyear = int(currentyear) if (month == 'June' or 'june' or 'July' or 'july' or 'august' or 'August'): season='summer' - else: - if (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): - season="fall" +else: + if (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): + season="fall" + else: + if (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): + season="winter" else: - if (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): - season="winter" - else: - if (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): - season="spring" + if (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): + season="spring" if (year < 1980): age="stone Age" else: From b2dfe265f59ed5022af7185975750f40c450cad0 Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 8 Feb 2019 09:48:24 -0500 Subject: [PATCH 47/51] Updated from Brython Server: 2/8/2019 9:48:23 AM From 180696148186feacae4da4f3a6a59dd5524ca51a Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 8 Feb 2019 09:50:47 -0500 Subject: [PATCH 48/51] Updated from Brython Server: 2/8/2019 9:50:46 AM --- birthday.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/birthday.py b/birthday.py index 962db491..6cc5d9a8 100644 --- a/birthday.py +++ b/birthday.py @@ -55,15 +55,12 @@ currentyear = int(currentyear) if (month == 'June' or 'june' or 'July' or 'july' or 'august' or 'August'): season='summer' -else: - if (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): - season="fall" - else: - if (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): - season="winter" - else: - if (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): - season="spring" +elif (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): + season="fall" +elif (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): + season="winter" +elif (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): + season="spring" if (year < 1980): age="stone Age" else: From cc2ec98eba7f8d089c7c1fb0ca8ab7cc09b68c7b Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 8 Feb 2019 13:57:02 -0500 Subject: [PATCH 49/51] Updated from Brython Server: 2/8/2019 1:57:01 PM --- birthday.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/birthday.py b/birthday.py index 6cc5d9a8..3c0568d1 100644 --- a/birthday.py +++ b/birthday.py @@ -53,13 +53,13 @@ day = int(input("And the day? ")) currentyear = datetime.today().year currentyear = int(currentyear) -if (month == 'June' or 'june' or 'July' or 'july' or 'august' or 'August'): - season='summer' -elif (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): +if month == ('June' or 'june' or 'July' or 'july' or 'august' or 'August'): + season="summer" +if (month == 'September' or 'september' or 'October' or 'october' or 'November' or 'november'): season="fall" -elif (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): +if (month == 'December' or 'december' or 'January' or 'january' or 'February' or 'february'): season="winter" -elif (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): +if (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): season="spring" if (year < 1980): age="stone Age" From ed53f3555f37d49d651c0d52aa20eaae86fca20d Mon Sep 17 00:00:00 2001 From: waSclthu11 <46973645+waSclthu11@users.noreply.github.com> Date: Fri, 8 Feb 2019 13:57:04 -0500 Subject: [PATCH 50/51] Updated from Brython Server: 2/8/2019 1:57:02 PM From 57ecf448ca2d7756802878570ade0b1ee103013e Mon Sep 17 00:00:00 2001 From: Eric Dennison Date: Tue, 26 Feb 2019 13:37:43 -0500 Subject: [PATCH 51/51] Update birthday.py --- birthday.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/birthday.py b/birthday.py index 3c0568d1..965696b2 100644 --- a/birthday.py +++ b/birthday.py @@ -62,7 +62,7 @@ if (month == 'March' or 'march' or 'April' or 'april' or 'May' or 'may'): season="spring" if (year < 1980): - age="stone Age" + age="Stone Age" else: if (year>=1980 and year<=1989): age="eighties" @@ -83,4 +83,4 @@ else: print( name +", you are a {0} baby of the ".format(season) + age + ".") - \ No newline at end of file +