Compare commits
2 Commits
b71075c3c8
...
d320b0b2f7
Author | SHA1 | Date | |
---|---|---|---|
d320b0b2f7 | |||
6893a4b893 |
9
README
9
README
@ -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
5
e1.py
Normal file
@ -0,0 +1,5 @@
|
||||
# Exercise 1
|
||||
# Task:
|
||||
'''
|
||||
Create a program that prints "Hello"
|
||||
'''
|
5
e2.py
Normal file
5
e2.py
Normal 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
13
e3.py
Normal 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
7
e4.py
Normal 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
7
e5.py
Normal 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"
|
||||
'''
|
@ -1,4 +1,4 @@
|
||||
x = 6
|
||||
x = 5
|
||||
|
||||
if x == 5:
|
||||
print("True")
|
Loading…
Reference in New Issue
Block a user