diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 0ca49f6..1f8a988 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -325,3 +325,8 @@ - Bio: Student at software engineering - GitHub: [devfajar](https://github.com/devfajar) +### Name : [Bethany Thompson](https://github.com/devfajar) + +- Place: Texas, United States +- Bio: Data Science Student at a coding bootcamp +- GitHub: [ThompsonBethany01](https://github.com/ThompsonBethany01) diff --git a/profiles/ThompsonBethany01.md b/profiles/ThompsonBethany01.md new file mode 100644 index 0000000..6fcaeef --- /dev/null +++ b/profiles/ThompsonBethany01.md @@ -0,0 +1,11 @@ +![Header-Profile](https://i.pinimg.com/originals/e9/52/a7/e952a7d299d90126597573613d712a46.png) + +Hello! I'm Beth from San Antonio, Texas and am currently attending a coding bootcamp for Data Science. +A lot of my projects are for class, but I've got some fun projects as well. Check out my project +based on the movie Office Sapce [here](https://github.com/ThompsonBethany01/Office-Space). My +interests include reading a good scy-fy book and being creative in my work! This is my first +Hacktoberfest, so I am new to the open source community. + +### Profile Link + +[ThompsonBethany01](https://github.com/ThompsonBethany01) diff --git a/scripts/hello_world_ThompsonBethany01.py b/scripts/hello_world_ThompsonBethany01.py new file mode 100644 index 0000000..c82b0cc --- /dev/null +++ b/scripts/hello_world_ThompsonBethany01.py @@ -0,0 +1,31 @@ +// LANGUAGE: Python +// ENV: VS Code +// AUTHOR: Bethany Thompson +// GITHUB: https://github.com/ThompsonBethany01 + +''' +Run this script to print a greeting specific to the current time +Morning, Afternoon, Evening, or Night +''' +# imports function to find current hour +from datetime import datetime + +# sets variable to hour of the current time +current_hour = datetime.now().time().hour + +# loops to determine what greeting to print, range does not include second value +# if hour is from 6am to 11am +if current_hour in range(6,12): + print('Good Morning, World') + +# if hour is from 12 pm to 5 pm +elif current_hour in range(12,18): + print('Good Afternoon, World') + +# if hour is from 6pm to 9pm +elif current_hour in range(18,22): + print('Good Evening, World') + +# if hour is from 10pm to 5am +elif current_hour >= 22 or current_hour < 6: + print('Good Night, World')