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/02_hello_world.py b/1-hello-world/02_hello_world.py
index d66b420..73fb7c3 100644
--- a/1-hello-world/02_hello_world.py
+++ b/1-hello-world/02_hello_world.py
@@ -1,4 +1 @@
-# Hello World 🌎
-# Codédex
-
-print('Hello world!')
+print('Hello World!')
diff --git a/1-hello-world/03_pattern.py b/1-hello-world/03_pattern.py
index 86d5f65..1ed538d 100644
--- a/1-hello-world/03_pattern.py
+++ b/1-hello-world/03_pattern.py
@@ -1,6 +1,3 @@
-# Pattern 📊
-# Codédex
-
print(' 1')
print(' 2 3')
print(' 4 5 6')
diff --git a/1-hello-world/04_initials.py b/1-hello-world/04_initials.py
index c35b1e3..9e60c6d 100644
--- a/1-hello-world/04_initials.py
+++ b/1-hello-world/04_initials.py
@@ -1,7 +1,4 @@
-# Initials ℹ️
-# Codédex
-
-# 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..486ca7f 100644
--- a/1-hello-world/05_letter.py
+++ b/1-hello-world/05_letter.py
@@ -2,16 +2,18 @@
# 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('| June 2022 |')
+print('| Brooklyn, NY |')
+print('| Dear Self, |')
print('| |')
-print('| Sonny Li 🤠 |')
+print('| Build the platform you always dreamed of — |')
+print('| the one you wish existed when you started. |')
+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 🤠 |')
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/3-control-flow/16_sorting_hat_1.py b/3-control-flow/16_sorting_hat_1.py
index f9747fc..9355579 100644
--- a/3-control-flow/16_sorting_hat_1.py
+++ b/3-control-flow/16_sorting_hat_1.py
@@ -20,11 +20,11 @@
answer = int(input('Enter answer (1-2): '))
if answer == 1:
- gryffindor += 1
- ravenclaw += 1
+ gryffindor = gryffindor + 1
+ ravenclaw = ravenclaw + 1
elif answer == 2:
- hufflepuff += 1
- slytherin +=1
+ hufflepuff = hufflepuff + 1
+ slytherin = slytherin + 1
else:
print('Wrong input.')
@@ -40,13 +40,13 @@
answer = int(input('Enter your answer (1-4): '))
if answer == 1:
- hufflepuff += 2
+ hufflepuff = hufflepuff + 2
elif answer == 2:
- slytherin += 2
+ slytherin = slytherin + 2
elif answer == 3:
- ravenclaw += 2
+ ravenclaw = ravenclaw + 2
elif answer == 4:
- gryffindor += 2
+ gryffindor = gryffindor + 2
else:
print('Wrong input.')
@@ -62,13 +62,13 @@
answer = int(input('Enter your answer (1-4): '))
if answer == 1:
- slytherin += 4
+ slytherin = slytherin + 4
elif answer == 2:
- hufflepuff += 4
+ hufflepuff = hufflepuff + 4
elif answer == 3:
- ravenclaw +=4
+ ravenclaw = ravenclaw + 4
elif answer == 4:
- gryffindor += 4
+ gryffindor = gryffindor + 4
else:
print('Wrong input.')
diff --git a/4-loops/18_guess_number.py b/4-loops/18_guess_number.py
index cfbb6c0..1597cad 100644
--- a/4-loops/18_guess_number.py
+++ b/4-loops/18_guess_number.py
@@ -5,7 +5,7 @@
tries = 0
while guess != 6 and tries < 5:
- guess = int(input('Guess the number: '))
+ guess = int(input('Guess the number: '))
tries = tries + 1
if guess != 6:
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)