diff --git a/1-hello-world/01_setting_up.py b/1-hello-world/01_setting_up.py new file mode 100644 index 0000000..4ac8144 --- /dev/null +++ b/1-hello-world/01_setting_up.py @@ -0,0 +1,3 @@ +# Write code below 💖 + +print('Hi') diff --git a/1-hello-world/04_initials.py b/1-hello-world/04_initials.py index 57a2076..9e60c6d 100644 --- a/1-hello-world/04_initials.py +++ b/1-hello-world/04_initials.py @@ -1,4 +1,4 @@ -# Fun fact: My high school band Attica was signed to an indie record label. +# Fun fact: My high school band Attica was signed to an indie record label. 🤘 print(' SSS L ') print('S S L ') diff --git a/1-hello-world/05_letter.py b/1-hello-world/05_letter.py index fed0003..e2998bd 100644 --- a/1-hello-world/05_letter.py +++ b/1-hello-world/05_letter.py @@ -1,17 +1,26 @@ # Snail Mail 💌 # Codédex -print('+---------------------------------------------------------------------+') -print('| June 2022 |') -print('| Brooklyn, NY |') -print('| Dear Self, |') -print('| |') -print('| Build the learn to code platform that you always dreamed of. |') -print('| Give more than you take. |') -print('| Care > capital. |') -print('| Five-second funerals for all the Ls. |') -print('| And always get back up. |') -print('| |') -print('| Sonny Li 🤠 |') -print('| |') -print('+---------------------------------------------------------------------+') +print('+---------------------------------------------------------------------------------+') +print('| |') +print('| October 2025 |') +print('| Brooklyn, NY |') +print('| Dear Self, |') +print('| |') +print('| Does great art require suffering? |') +print('| Does great product demand capital? |') +print('| Did you find any truth at the end of the road? |') +print('| |') +print('| Regardless, go build the learning platform you’ve always dreamed of — |') +print('| the one you wish existed when you first started. |') +print('| |') +print('| Give more than you take. |') +print('| Take only what you need. |') +print('| |') +print('| And when things fall apart, get tf back up. |') +print('| |') +print('| - Sonny Li |') +print('| |') +print('| P.S. Hope I made you proud. You got this, kiddo. 🤠 |') +print('| |') +print('+---------------------------------------------------------------------------------+') diff --git a/1-hello-world/05_letter_2.py b/1-hello-world/05_letter_2.py new file mode 100644 index 0000000..d3076b1 --- /dev/null +++ b/1-hello-world/05_letter_2.py @@ -0,0 +1,19 @@ +# Snail Mail 💌 +# Codédex + +print('+---------------------------------------------------------------------+') +print('| |') +print('| |') +print('| Wrote myself a letter |') +print('| just a single question |') +print('| |') +print('| "When you finally get this, where will you be?" ✨ |') +print('| |') +print('| Will you be a shipwreck or a star |') +print('| Falling for a boy who doesn\'t play guitar? |') +print('| Now rewind the tape back to the start |') +print('| |') +print('| - Caroline Polachek |') +print('| |') +print('| |') +print('+---------------------------------------------------------------------+') diff --git a/1-hello-world/hello_world.mov b/1-hello-world/hello_world.mov deleted file mode 100644 index a05b542..0000000 Binary files a/1-hello-world/hello_world.mov and /dev/null differ diff --git a/5-lists/27_bucket_list.py b/5-lists/27_bucket_list.py index f4dcfa7..e734a0a 100644 --- a/5-lists/27_bucket_list.py +++ b/5-lists/27_bucket_list.py @@ -2,12 +2,12 @@ # Codédex things_to_do = [ - '🚀 Build a meaningful product for everyone.', - '⛰ Try out hiking and mountain biking.', - '🌏 Visit at least 10 countries in my lifetime.', - '🎸 Produce an original song.', - '📝 Write a short story.', - '🏃 Finish a 10k marathon.' + '🚀 Build a meaningful product for everyone.', + '⛰ Try out hiking and mountain biking.', + '🌏 Visit at least 10 countries in my lifetime.', + '🎸 Produce an original song.', + '📝 Write a short story.', + '🏃 Finish a 10k marathon.' ] for thing in things_to_do: diff --git a/6-functions/30_rocket.py b/6-functions/30_rocket.py index 306c2eb..d928b41 100644 --- a/6-functions/30_rocket.py +++ b/6-functions/30_rocket.py @@ -2,7 +2,7 @@ # Codédex def distance_to_miles(distance): - return distance / 1.609 + miles = distance / 1.609 + print(miles) -answer = distance_to_miles(10000) -print(answer) +distance_to_miles(10000) diff --git a/README.md b/README.md index cb56759..79b47b8 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,18 @@ Welcome to The Legend of Python GitHub repo! We are super excited to have you. Here, you will find all the solutions to the Codédex exercises. Feel free to make pull requests to add your own twists on the exercises! -### Website: www.codedex.io/python +### Start the course: www.codedex.io/python -## Hello World +## 1: Hello World - [`hello_world.py`](https://github.com/codedex-io/python-101/blob/main/1-hello-world/02_hello_world.py) - [`pattern.py`](https://github.com/codedex-io/python-101/blob/main/1-hello-world/03_pattern.py) - [`initials.py`](https://github.com/codedex-io/python-101/blob/main/1-hello-world/04_initials.py) - [`letter.py`](https://github.com/codedex-io/python-101/blob/main/1-hello-world/05_letter.py) -## Variables +Walkthrough video: https://youtube.com/watch?v=ioumu_SC7F8 + +## 2. Variables - [`temperature.py`](https://github.com/codedex-io/python-101/blob/main/2-variables/07_temperature.py) - [`bmi.py`](https://github.com/codedex-io/python-101/blob/main/2-variables/08_bmi.py)