From c98439464c61437f56365564b183ae4c176bc069 Mon Sep 17 00:00:00 2001 From: P Gautam <92343715+PGautam27@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:25:36 +0530 Subject: [PATCH 1/6] Create zodiacSignCalculator --- scripts/Zodiac_Sign_Calc/zodiacSignCalculator | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 scripts/Zodiac_Sign_Calc/zodiacSignCalculator diff --git a/scripts/Zodiac_Sign_Calc/zodiacSignCalculator b/scripts/Zodiac_Sign_Calc/zodiacSignCalculator new file mode 100644 index 0000000..6eb36e9 --- /dev/null +++ b/scripts/Zodiac_Sign_Calc/zodiacSignCalculator @@ -0,0 +1,42 @@ +##Takes in the month as the input +month = int(input("Enter the month number that you were born: ")) + +##if the month is valid the x is true. where x is a flag +if(month>0 and month <12): + print() + x=True +else: + print("wrong month, pls restart the program") + x=False + +##if the flag is true then it checks the month and the date and prints the zodiac sign +if(x): + day = int(input("Enter the day you were born:")) + + if month==3: + sign = "Pisces" if(day < 21) else "Aries" + elif month==4: + sign = "Aries" if(day < 20) else "Tourus" + elif month==5: + sign = "Tourus" if(day < 21) else "Gemini" + elif month==6: + sign = "Gemini" if(day < 21) else "Cancer" + elif month==7: + sign = "Cancer" if(day < 23) else "Leo" + elif month==8: + sign = "Leo" if(day < 23) else "Virgo" + elif month==9: + sign = "Virgo" if(day < 23) else "Libra" + elif month==10: + sign = "Libra" if(day < 23) else "Scorpio" + elif month==11: + sign = "Scorpio" if(day < 22) else "Sagittarius" + elif month==12: + sign = "Sagittarius" if(day < 22) else "Capricorn" + elif month==1: + sign = "Capricorn" if(day < 20) else "Aquarius" + elif month==2: + sign == "Aquarius" if(day < 19) else "Pisces" + + print() + print("Your zodiac sign is "+sign) From 7e451e545af2c0bcde63921ef983a8a019c4c3b4 Mon Sep 17 00:00:00 2001 From: P Gautam <92343715+PGautam27@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:26:21 +0530 Subject: [PATCH 2/6] Rename zodiacSignCalculator to zodiacSignCalculator.py --- .../{zodiacSignCalculator => zodiacSignCalculator.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename scripts/Zodiac_Sign_Calc/{zodiacSignCalculator => zodiacSignCalculator.py} (100%) diff --git a/scripts/Zodiac_Sign_Calc/zodiacSignCalculator b/scripts/Zodiac_Sign_Calc/zodiacSignCalculator.py similarity index 100% rename from scripts/Zodiac_Sign_Calc/zodiacSignCalculator rename to scripts/Zodiac_Sign_Calc/zodiacSignCalculator.py From fa82bf2e2dc09fcb3a1f02bac57956f24e7dd28d Mon Sep 17 00:00:00 2001 From: P Gautam <92343715+PGautam27@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:28:52 +0530 Subject: [PATCH 3/6] Create README.md --- scripts/Zodiac_Sign_Calc/README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 scripts/Zodiac_Sign_Calc/README.md diff --git a/scripts/Zodiac_Sign_Calc/README.md b/scripts/Zodiac_Sign_Calc/README.md new file mode 100644 index 0000000..6dea1ea --- /dev/null +++ b/scripts/Zodiac_Sign_Calc/README.md @@ -0,0 +1,3 @@ +#Zodiac Sign Calculator + +It takes in the birth month and the day as the input. It then computes it and prints the zodiac sign. From cafa610338687b697c60a3a67e289fac3fd2ec3e Mon Sep 17 00:00:00 2001 From: P Gautam <92343715+PGautam27@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:30:01 +0530 Subject: [PATCH 4/6] Update README.md --- scripts/Zodiac_Sign_Calc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Zodiac_Sign_Calc/README.md b/scripts/Zodiac_Sign_Calc/README.md index 6dea1ea..0c1995e 100644 --- a/scripts/Zodiac_Sign_Calc/README.md +++ b/scripts/Zodiac_Sign_Calc/README.md @@ -1,3 +1,3 @@ -#Zodiac Sign Calculator +##Zodiac Sign Calculator It takes in the birth month and the day as the input. It then computes it and prints the zodiac sign. From 2f2267c08cc609e00441b536e0468d845ad72f29 Mon Sep 17 00:00:00 2001 From: P Gautam <92343715+PGautam27@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:39:37 +0530 Subject: [PATCH 5/6] Create README.md --- scripts/Zodiac_Sign_Calc/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Zodiac_Sign_Calc/README.md b/scripts/Zodiac_Sign_Calc/README.md index 0c1995e..6a720e8 100644 --- a/scripts/Zodiac_Sign_Calc/README.md +++ b/scripts/Zodiac_Sign_Calc/README.md @@ -1,3 +1,3 @@ -##Zodiac Sign Calculator +## Zodiac Sign Calculator It takes in the birth month and the day as the input. It then computes it and prints the zodiac sign. From fd6b2253127747f288dc2359fef3aa5ec5e76acf Mon Sep 17 00:00:00 2001 From: P Gautam <92343715+PGautam27@users.noreply.github.com> Date: Thu, 6 Oct 2022 09:54:25 +0530 Subject: [PATCH 6/6] Update README.md --- scripts/Zodiac_Sign_Calc/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Zodiac_Sign_Calc/README.md b/scripts/Zodiac_Sign_Calc/README.md index 6a720e8..22415c3 100644 --- a/scripts/Zodiac_Sign_Calc/README.md +++ b/scripts/Zodiac_Sign_Calc/README.md @@ -1,3 +1,5 @@ ## Zodiac Sign Calculator It takes in the birth month and the day as the input. It then computes it and prints the zodiac sign. + +![zodiac](https://user-images.githubusercontent.com/92343715/194213601-b5f36ca7-b2de-4ec2-aad2-c3b3783bce6a.png)