This commit is contained in:
Liam Waldron 2023-06-07 17:58:34 -04:00
parent b71075c3c8
commit 6893a4b893
11 changed files with 68 additions and 0 deletions

9
README
View File

@ -16,10 +16,19 @@ Exercises are contained in files as well (for instance, exercise 1 is contained
Read the comment and do what it instructs you to do.
Run the exercise.
+---------------+
| Prerequisites |
+---------------+
The following must be downloaded and installed:
- Python
- Git
+------+
| Plan |
+------+
Day 1 {
Lessons 1-5
Exercises 1-5
}

5
e1.py Normal file
View File

@ -0,0 +1,5 @@
# Exercise 1
# Task:
'''
Create a program that prints "Hello"
'''

5
e2.py Normal file
View File

@ -0,0 +1,5 @@
# Exercise 2
# Task:
'''
Create two variables, one equalling 5 and the other equalling 10, and print the sum
'''

13
e3.py Normal file
View File

@ -0,0 +1,13 @@
# Exercise 3
# Task:
'''
Print the following:
- Sum of 5 and 10
- Difference of 5 and 10
- Product of 5 and 10
- Quotient of 5 and 10
- Remainder of 5 and 10
Do not use variables.
'''

7
e4.py Normal file
View File

@ -0,0 +1,7 @@
# Exercise 4
# Task:
'''
Create a variable that is equal to 5.
Use an if statement to print "True" if the variable is equal to 5.
'''

7
e5.py Normal file
View File

@ -0,0 +1,7 @@
# Exercise 5
# Task
'''
Create a variable that is equal to 10
If the variable is equal to 5, print "True", otherwise print "False"
'''

2
l1.py Normal file
View File

@ -0,0 +1,2 @@
print("hi")
print("buddy")

4
l2.py Normal file
View File

@ -0,0 +1,4 @@
x = 5
y = 10
print(x + y)

6
l3.py Normal file
View File

@ -0,0 +1,6 @@
print(5 + 10)
print(5 - 10)
print(5 * 10)
print(5 / 10)
print(5 % 10)

4
l4.py Normal file
View File

@ -0,0 +1,4 @@
x = 5
if x == 5:
print("True")

6
l5.py Normal file
View File

@ -0,0 +1,6 @@
x = 10
if x == 5:
print("True")
else:
print("False")