Skip to content

Commit

Permalink
Testing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
123456789degrees committed Sep 3, 2024
1 parent 831a585 commit 3a9c10e
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 8 deletions.
37 changes: 31 additions & 6 deletions lessons/00_Turtles/01_Get_Started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,17 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello 👋 World 🌎 ! Today is August 18, 2024\n"
]
}
],
"source": [
"import datetime\n",
"\n",
Expand Down Expand Up @@ -121,12 +129,29 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello 👋 World 🌎 ! Today is August 18, 2024\n",
"My name is Joshua!\n"
]
}
],
"source": [
"# Write your Hello World code below\n",
"\n"
"\n",
"import datetime\n",
"\n",
"date = datetime.date.today().strftime(\"%B %d, %Y\")\n",
"s = F\"Hello 👋 World 🌎 ! Today is {date}\"\n",
"\n",
"\n",
"print(s)\n",
"print(\"My name is Joshua!\")"
]
},
{
Expand Down Expand Up @@ -167,7 +192,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
6 changes: 5 additions & 1 deletion lessons/00_Turtles/03a_Turtle_Tricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@
# tina.pencolor()

... # Your code here

tina.forward(50)
tina.left(120)
tina.forward(50)
tina.left(120)
tina.forward(50)
turtle.exitonclick() # Close the window when we click on it
16 changes: 15 additions & 1 deletion lessons/00_Turtles/03b_Turtle_Tricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,21 @@
# Use tina.forward() and tina.left() to draw a pentagon
# Make each side of the pentagon a different color with
# tina.pencolor()

tina.pencolor("red")
tina.forward(50)
tina.left(72)
tina.pencolor("blue")
tina.forward(50)
tina.left(72)
tina.pencolor("green")
tina.forward(50)
tina.left(72)
tina.pencolor("yellow")
tina.forward(50)
tina.left(72)
tina.pencolor("purple")
tina.forward(50)
tina.left(72)

... # Your code here

Expand Down

0 comments on commit 3a9c10e

Please sign in to comment.