Skip to content

Commit 53e48cd

Browse files
committed
updated python example IDE naming convention
1 parent 1ea0f7c commit 53e48cd

29 files changed

Lines changed: 106 additions & 28 deletions

File tree

Unit 1/lesson 1/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "A program is just a list of instructions the computer follows from top to bottom. print() is how you make Python show something on the screen. A comment is a note you write for yourself. In Python, a comment is written using a #.",
1818

1919
code: {
20-
filename: "lesson_1_1.py",
20+
filename: "Unit_1_Lesson_1.py",
2121
lines: [
2222
`# This is my first program`,
2323
`print("Hello, world!")`,

Unit 1/lesson 2/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "You can pass several things to print() separated by commas and it will put a space between them automatically. If you need a quote character inside your text, you can mix single and double quotes. A backslash lets you add special characters like a new line.",
1818

1919
code: {
20-
filename: "lesson_1_2.py",
20+
filename: "Unit_1_Lesson_2.py",
2121
lines: [
2222
`# Printing multiple values at once`,
2323
`print("Score:", 10, "points")`,

Unit 1/lesson 3/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "a variable is like a container that can hold a value. Instead of writing the same value over and over again, you can store it inside a variable and use it by calling the variable's name. This makes your code easier to read and maintain. You can also update the value of the variable whenever you need to.",
1818

1919
code: {
20-
filename: "lesson_1_3.py",
20+
filename: "Unit_1_Lesson_3.py",
2121
lines: [
2222
`# Store values in variables`,
2323
`player = "Messi"`,

Unit 1/lesson 4/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "input() pauses the program and waits for the user to type something. Whatever they type comes back as text, which you can store in a variable and use later. The string you put inside input() is the prompt.",
1818

1919
code: {
20-
filename: "lesson_1_4.py",
20+
filename: "Unit_1_Lesson_4.py",
2121
lines: [
2222
`# Ask the user for their name`,
2323
`name = input("What is your name? ")`,

Unit 1/lesson 5/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "Every value in Python has a type. Text is a string (str), whole numbers are integers (int), and decimal numbers are floats (float). Because input() always returns a string, you have to convert it before you can do math, or otherwise known as casting.",
1818

1919
code: {
20-
filename: "lesson_1_5.py",
20+
filename: "Unit_1_Lesson_5.py",
2121
lines: [
2222
`# input() gives back a string, so we cast it to do math`,
2323
`age_text = input("How old are you? ")`,

Unit 2/lesson 1/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "Python works like a calculator. You can write math expressions directly in your code and Python will compute them. The order of operations is the same as in maths class (PEMDAS): Parentheses, Exponents, Multiplication and Division (left to right), Addition and Subtraction (left to right).",
1818

1919
code: {
20-
filename: "lesson_2_1.py",
20+
filename: "Unit_2_Lesson_1.py",
2121
lines: [
2222
`# Basic arithmetic`,
2323
`print(10 + 3)`,

Unit 2/lesson 2/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "Python has three division operators. A single slash / always gives you a decimal answer. A double slash // throws away the decimal and gives you only the whole number. The percent sign % gives you what is left over after dividing (the remainder or modulus).",
1818

1919
code: {
20-
filename: "lesson_2_2.py",
20+
filename: "Unit_2_Lesson_2.py",
2121
lines: [
2222
`# Regular division always gives a float`,
2323
`print(7 / 2)`,

Unit 2/lesson 3/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "Every value that comes back from input() is a string. That means you cannot do math with it until you convert it. Wrap it in int() for whole numbers or float() for decimals. Once you have real numbers you can use them in any calculation you like.",
1818

1919
code: {
20-
filename: "lesson_2_3.py",
20+
filename: "Unit_2_Lesson_3.py",
2121
lines: [
2222
`# Get numbers from the user and do maths`,
2323
`price = float(input("Price per item: "))`,

Unit 2/lesson 4/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "Python comes with a math library full of useful tools that are not available by default. You unlock them by writing import math at the top of your program. After that you can call any of the library's functions using math.function_name(). Think of it like opening a maths toolbox that was sitting in a drawer.",
1818

1919
code: {
20-
filename: "lesson_2_4.py",
20+
filename: "Unit_2_Lesson_4.py",
2121
lines: [
2222
`import math`,
2323
``,

Unit 3/lesson 1/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
idea: "A comparison is a question with a yes or no answer. Python answers it with either True or False (also called Booleans). You can compare numbers, strings, or variables. Comparisons are neccesary for decision making in a program.",
1818

1919
code: {
20-
filename: "lesson_3_1.py",
20+
filename: "Unit_3_Lesson_1.py",
2121
lines: [
2222
`# Comparing numbers`,
2323
`print(5 > 3)`,

0 commit comments

Comments
 (0)