Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 45 additions & 10 deletions lessons/00_Turtles/01_Get_Started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,25 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello 👋 World 🌎 ! Today is 2024-08-29\n"
]
}
],
"source": [
"import datetime\n",
"\n",
"date = datetime.date.today().strftime(\"%B %d, %Y\")\n",
"s = F\"Hello 👋 World 🌎 ! Today is {date}\"\n",
"date = datetime.date.today() # Get the Date\n",
"\n",
"s = F\"Hello 👋 World 🌎 ! Today is\" # Make a string with a message and the date\n",
"\n",
"print(s)"
"print(s, date) # Print the string. "
]
},
{
Expand Down Expand Up @@ -151,14 +159,41 @@
"\n",
"### Hit the F5 Key\n",
"\n",
"You can also run the program by hitting the F5 key. On a Mac, you will have to hold down the fn key and then hit F5. \n",
"You can also run the program by hitting the F5 key. On a Mac, you will have to\n",
"hold down the fn key and then hit F5. THis is a bit different than using the run\n",
"button, because F5 will open the debugger. \n",
"\n",
"The first time you hit F5, look at the top of the IDE window. YOu shoudl see a\n",
"selection window that reads \"Select Debugger\". Select the first option, \"Python\n",
"Debugger\". Then, on the next window, select \"Python File. Debug currently active\n",
"Python file\". After that, you will see the debug bar: \n",
"\n",
"<center><img src=\"https://images.jointheleague.org/vscode/debug_bar.png\" width=\"300px\"></center>\n",
"\n",
"We will learn all of the features for the debugger later, but for now you just\n",
"need to know that you press the red square to exit your program, and the gree\n",
"circle to re-run it. \n",
"\n",
"\n",
"<div class=\"alert alert-warning\">\n",
" You can't run a program again until you end the currently running program. If you see a turtle window open, then you should either click on the window to close it ( if the program ends with `turtle.exitonclick()` or click on the X in the upper right of the turtle window. )\n",
"\n",
"You can't run a program again until you end the currently running program. If\n",
"you see a turtle window open, then you should either click on the window to\n",
"close it ( if the program ends with `turtle.exitonclick()` or click on the X in\n",
"the upper right of the turtle window. )\n",
"\n",
"Or, if you are using the debugger, click the red square in the debugger bar. \n",
"\n",
"</div>"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -169,7 +204,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -183,9 +218,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.11.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
2 changes: 1 addition & 1 deletion lessons/00_Turtles/02_Meet_Tina.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""

import turtle # Tell Python we want to work with the turtle
turtle.setup(width=600, height=600) # Set the size of the window
turtle.setup(width=600, height=600, startx=0, starty=0) # Set the size of the window

tina = turtle.Turtle() # Create a turtle named tina

Expand Down
10 changes: 8 additions & 2 deletions lessons/00_Turtles/03_Check_In_Your_Code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"\n",
"<center><img src=\"https://images.jointheleague.org/vscode/git_changes.png\" width=\"100px\"></center>\n",
"\n",
"This is the Source Control icon; click on it to get accecss to the Source Control tool for\n",
"This is the Source Control icon; click on it to get access to the Source Control tool for\n",
"checking in your code. Now the Source Control pane should look like this: \n",
"\n",
"<center><img src=\"https://images.jointheleague.org/vscode/sc_changes.png\" width=\"400px\"></center>\n",
Expand Down Expand Up @@ -66,7 +66,13 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Remember to check in your code frequently! The best thing to do is check in after every lesson, but you should be especially diligent about checking code in before you finish your lessons for the day. "
"Remember to check in your code frequently! The best thing to do is check in\n",
"after every lesson, but you should be especially diligent about checking code in\n",
"before you finish your lessons for the day. \n",
"\n",
"If you want to force your Codespace to stop, click on the blue area in the lower\n",
"left corner. That will pop up a menu ( at the top of the screen ) with options\n",
"to stop the codespace. \n"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion lessons/00_Turtles/04a_Turtle_Tricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# These lines are needed in most turtle programs
import turtle # Tell Python we want to work with the turtle
turtle.setup (width=600, height=600) # Set the size of the window
turtle.setup (width=600, height=600, startx=0, starty=0) # Set the size of the window

tina = turtle.Turtle() # Create a turtle named tina

Expand Down
2 changes: 1 addition & 1 deletion lessons/00_Turtles/04b_Turtle_Tricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# These lines are needed in most turtle programs
import turtle # Tell Python we want to work with the turtle
turtle.setup (width=600, height=600) # Set the size of the window
turtle.setup (width=600, height=600, startx=0, starty=0) # Set the size of the window
tina = turtle.Turtle() # Create a turtle named tina

# Use tina.forward() and tina.left() to draw a pentagon
Expand Down
2 changes: 1 addition & 1 deletion lessons/00_Turtles/04c_Turtle_Tricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# These lines are needed in most turtle programs
import turtle # Tell Python we want to work with the turtle
turtle.setup (width=600, height=600) # Set the size of the window
turtle.setup (width=600, height=600, startx=0, starty=0) # Set the size of the window
tina = turtle.Turtle() # Create a turtle named tina

# Use tina.circle() to draw a circle, and tina.goto() to move tina to a new location
Expand Down
2 changes: 1 addition & 1 deletion lessons/00_Turtles/05a_Loops.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"\n",
"```python \n",
"import turtle # Tell Python we want to work with the turtle\n",
"turtle.setup (width=600, height=600) # Set the size of the window\n",
"turtle.setup (width=600, height=600, startx=0, starty=0) # Set the size of the window\n",
"\n",
"tina = turtle.Turtle() # Create a turtle named tina\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion lessons/00_Turtles/05b_Loop_with_Turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


import turtle # Tell Python we want to work with the turtle
turtle.setup (width=600, height=600) # Set the size of the window
turtle.setup (width=600, height=600, startx=0, starty=0) # Set the size of the window

tina = turtle.Turtle() # Create a turtle named tina

Expand Down
161 changes: 0 additions & 161 deletions lessons/00_Turtles/06a_Variables_and_Functions.ipynb

This file was deleted.

2 changes: 1 addition & 1 deletion lessons/00_Turtles/07_Efficient_Turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


import turtle # Tell Python we want to work with the turtle
turtle.setup (width=600, height=600) # Set the size of the window
turtle.setup (width=600, height=600, startx=0, starty=0) # Set the size of the window

tina = turtle.Turtle() # Create a turtle named tina

Expand Down
Loading
Loading