Skip to content

Commit d4e08e8

Browse files
committedJun 8, 2017
Added lesson_settings and started chapter 2 content
1 parent 5e21630 commit d4e08e8

23 files changed

+212
-2
lines changed
 

Diff for: ‎challenges.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"Python Beginner Challenges","last_edit":1496850024471,"chapters":["Introduction","Input","Operators","Math"],"challenges":[[],[{"id":"592f1cc969cf862d8a7bb7f2","title":"Input Edit","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":1,"lesson":3}],[{"id":"59381b056f0201972cc968b1","title":"Assignment Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":1},{"id":"59382d5b5b0de5a15275c053","title":"Equality Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":2},{"id":"59382dac5b0de5a15275c054","title":"Inequality Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":3},{"id":"59382e635b0de5a15275c055","title":"Strictly Less Than Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":4},{"id":"59382eda5b0de5a15275c056","title":"Less Than or Equal to Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":5},{"id":"59382f645b0de5a15275c057","title":"Greater Than or Equal To Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":6},{"id":"59382fc85b0de5a15275c058","title":"Strictly Greater Than Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":7},{"id":"59382ff35b0de5a15275c059","title":"False Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":8},{"id":"593830b05b0de5a15275c05a","title":"True Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":9},{"id":"593831095b0de5a15275c05b","title":"Logical And Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":10},{"id":"593832b25b0de5a15275c05c","title":"Logical Not Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":11},{"id":"5938330f5b0de5a15275c05d","title":"Logical Or Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":12},{"id":"593833575b0de5a15275c05e","title":"Is Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":13},{"id":"593833b65b0de5a15275c05f","title":"Is Not Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":14},{"id":"593834105b0de5a15275c060","title":"In Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":15},{"id":"5938346a5b0de5a15275c061","title":"Not In Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":16}],[{"id":"592893767a194ee412ae2e1f","title":"Addition","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":1},{"id":"592895b87a194ee412ae2e20","title":"Subtraction","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":2},{"id":"592895ef7a194ee412ae2e21","title":"Multiplication","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":3},{"id":"5928961e7a194ee412ae2e22","title":"Float Division","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":4},{"id":"592896397a194ee412ae2e23","title":"Integer Division","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":5},{"id":"5928965a7a194ee412ae2e24","title":"Exponents","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":6},{"id":"592896717a194ee412ae2e25","title":"Remainder","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":7},{"id":"592898c97a194ee412ae2e26","title":"Divmod","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":8},{"id":"592898dc7a194ee412ae2e27","title":"Square Root","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":9},{"id":"592899f67a194ee412ae2e28","title":"Sum","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":10},{"id":"59289a1a7a194ee412ae2e29","title":"Rounding","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":11},{"id":"59289a2f7a194ee412ae2e2a","title":"Absolute Value","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":12},{"id":"59289a477a194ee412ae2e2b","title":"Min Value","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":13},{"id":"59289a5a7a194ee412ae2e2c","title":"Max Value","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":14}]]}
1+
{"name":"Python Beginner Challenges","last_edit":1496934858175,"chapters":["Introduction","Input","Data Types", "Operators","Math"],"challenges":[[],[{"id":"593964e5d230354d7438db33","title":"Print","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":1,"lesson":1},{"id":"593964dad230354d7438db32","title":"Escape Charactesr","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":1,"lesson":2},{"id":"592f1cc969cf862d8a7bb7f2","title":"Input Edit","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":1,"lesson":3}],[{"id":"593964fdd230354d7438db34","title":"Numbers","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":2,"lesson":1},{"id":"5939650ad230354d7438db35","title":"Strings","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":2,"lesson":2},{"id":"59396524d230354d7438db36","title":"Tuples","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":2,"lesson":3},{"id":"593967e6d230354d7438db39","title":"Lists","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":2,"lesson":4},{"id":"593967ddd230354d7438db38","title":"Sets","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":2,"lesson":5},{"id":"593967d4d230354d7438db37","title":"Dictionaries","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":2,"lesson":6}],[{"id":"59381b056f0201972cc968b1","title":"Assignment Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":1},{"id":"59382d5b5b0de5a15275c053","title":"Equality Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":2},{"id":"59382dac5b0de5a15275c054","title":"Inequality Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":3},{"id":"59382e635b0de5a15275c055","title":"Strictly Less Than Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":4},{"id":"59382eda5b0de5a15275c056","title":"Less Than or Equal to Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":5},{"id":"59382f645b0de5a15275c057","title":"Greater Than or Equal To Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":6},{"id":"59382fc85b0de5a15275c058","title":"Strictly Greater Than Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":7},{"id":"59382ff35b0de5a15275c059","title":"False Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":8},{"id":"593830b05b0de5a15275c05a","title":"True Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":9},{"id":"593831095b0de5a15275c05b","title":"Logical And Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":10},{"id":"593832b25b0de5a15275c05c","title":"Logical Not Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":11},{"id":"5938330f5b0de5a15275c05d","title":"Logical Or Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":12},{"id":"593833575b0de5a15275c05e","title":"Is Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":13},{"id":"593833b65b0de5a15275c05f","title":"Is Not Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":14},{"id":"593834105b0de5a15275c060","title":"In Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":15},{"id":"5938346a5b0de5a15275c061","title":"Not In Operator","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":3,"lesson":16}],[{"id":"592893767a194ee412ae2e1f","title":"Addition","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":1},{"id":"592895b87a194ee412ae2e20","title":"Subtraction","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":2},{"id":"592895ef7a194ee412ae2e21","title":"Multiplication","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":3},{"id":"5928961e7a194ee412ae2e22","title":"Float Division","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":4},{"id":"592896397a194ee412ae2e23","title":"Integer Division","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":5},{"id":"5928965a7a194ee412ae2e24","title":"Exponents","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":6},{"id":"592896717a194ee412ae2e25","title":"Remainder","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":7},{"id":"592898c97a194ee412ae2e26","title":"Divmod","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":8},{"id":"592898dc7a194ee412ae2e27","title":"Square Root","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":9},{"id":"592899f67a194ee412ae2e28","title":"Sum","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":10},{"id":"59289a1a7a194ee412ae2e29","title":"Rounding","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":11},{"id":"59289a2f7a194ee412ae2e2a","title":"Absolute Value","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":12},{"id":"59289a477a194ee412ae2e2b","title":"Min Value","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":13},{"id":"59289a5a7a194ee412ae2e2c","title":"Max Value","repl":"https://repl.it/student_embed/assignment/136137/d860e0ad34862a709895f54706dcf9af","completed":false,"chapter":4,"lesson":14}]]}

Diff for: ‎challenges/1.1.Print/lesson_settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"lesson_title": "Print",
3+
"chapter_number": 1,
4+
"lesson_number": 1,
5+
"id": "593964e5d230354d7438db33",
6+
"repl": ""
7+
}
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"lesson_title": "Escape Charactesr",
3+
"chapter_number": 1,
4+
"lesson_number": 2,
5+
"id": "593964dad230354d7438db32",
6+
"repl": ""
7+
}

Diff for: ‎challenges/2.1.Integers_Floats/lesson.md

Whitespace-only changes.

Diff for: ‎challenges/2.1.Integers_Floats/lesson_code.py

Whitespace-only changes.

Diff for: ‎challenges/2.1.Integers_Floats/lesson_settings.json

Whitespace-only changes.

Diff for: ‎challenges/2.1.Integers_Floats/lesson_tests.py

Whitespace-only changes.

Diff for: ‎challenges/2.1.NumberTypes/lesson.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Python Numbers
2+
3+
There are 3 distinct numeric types in python.
4+
- int
5+
- float
6+
- complex
7+
- https://docs.python.org/3.6/library/stdtypes.html#numeric-types-int-float-complex
8+
9+
**Integers** have _unlimited precision_; thus, they can be as large as you need them to be.
10+
11+
Example: `myInt = 789456123`
12+
13+
**Floats** are limited to the precision of a C _double_ value. You can check your systems _float precision_ by using the following commands:
14+
```
15+
import sys
16+
sys.float_info
17+
```
18+
19+
Example: `myFloat = 123.4567`
20+
21+
**Complex** numbers are broken into two parts, a real and imaginary part. Both are floating point numbers and can be accessed using the `.real` and `.imag` properties. You can create a complex number using the `complex(real, imag)` command. In Python, the _imaginary constant_ usually dictated with an `i` is replaced with a `j`.
22+
23+
Example: `myComplex = complex(2, 3.4) # myComplex = (2+3.4j)`
24+
25+
**_Instructions:_**
26+
- Assign an integer value to the `myInteger` variable
27+
- Assign a float value to the `myFloat` variable
28+
- Assign a complex value to the `myComplex` variable. Make sure it has both a real and imaginary part.

Diff for: ‎challenges/2.1.NumberTypes/lesson_code.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Modify the code below ###
2+
3+
myInteger = null
4+
5+
myFloat = null
6+
7+
myComplex = null
8+
9+
### Modify the code above ###

Diff for: ‎challenges/2.1.NumberTypes/lesson_settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"lesson_title": "Numbers",
3+
"chapter_number": 2,
4+
"lesson_number": 1,
5+
"id": "593964fdd230354d7438db34",
6+
"repl": ""
7+
}

Diff for: ‎challenges/2.1.NumberTypes/lesson_tests.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
import lesson_code
3+
4+
class NumbersTests(unittest.TestCase):
5+
def test_main(self):
6+
myInteger = lesson_code.myInteger
7+
myFloat = lesson_code.myFloat
8+
myComplex = lesson_code.myComplex
9+
self.assertIsInstance(myInteger, int)
10+
self.assertIsInstance(myFloat, float)
11+
self.assertIsInstance(myComplex, complex)

Diff for: ‎challenges/2.2.Strings/lesson.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Python Strings
2+
3+
The simplest form of text sequences in Python is a `str` or _strings_.
4+
5+
To write a string in Python you have 4 options:
6+
1. Using single quotes: `myStr = 'this allows "double" quotes inside'`
7+
2. using double quotes: `myStr = "this allows 'single' quotes inside"`
8+
3. Using triple single quotes:
9+
```
10+
myStr = '''Three quotes allows
11+
for multiline strings.
12+
Cool right?'''
13+
```
14+
4. Using triple double quotes:
15+
```
16+
myStr = """Three quotes allows
17+
for multiline strings.
18+
Isn't that even cooler?"""
19+
```
20+
21+
Strings are considered 'immutable' meaning they can not be changed; however, two strings can be concatenated together using the `+` operator.
22+
23+
Example:
24+
```
25+
firstName = 'Jane'
26+
lastName = 'Doe'
27+
fullName = "My full name is: " + firstName + " " + lastName + "."
28+
```
29+
30+
**_Instructions:_**
31+
Mini-Mad-Lib:
32+
- Assign strings to each variable.
33+
- Then concatenate everything together in the `mySentence` variable

Diff for: ‎challenges/2.2.Strings/lesson_code.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Modify the code below ###
2+
3+
myName = null
4+
5+
myAge = null
6+
7+
favoriteActivity = null
8+
9+
mySentence = null
10+
11+
### Modify the code above ###

Diff for: ‎challenges/2.2.Strings/lesson_settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"lesson_title": "Strings",
3+
"chapter_number": 2,
4+
"lesson_number": 2,
5+
"id": "5939650ad230354d7438db35",
6+
"repl": ""
7+
}

Diff for: ‎challenges/2.2.Strings/lesson_tests.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import unittest
2+
import lesson_code
3+
4+
class StringsTests(unittest.TestCase):
5+
def test_main(self):
6+
myName = lesson_code.myName
7+
myAge = lesson_code.myAge
8+
favoriteActivity = lesson_code.favoriteActivity
9+
mySentence = lesson_code.mySentence
10+
self.assertIsInstance(myName, str)
11+
self.assertIsInstance(myAge, str)
12+
self.assertIsInstance(favoriteActivity, str)
13+
self.assertIsInstance(mySentence, str)

Diff for: ‎challenges/2.3.Tuples/lesson.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Python Tuples
2+
3+
A tuple is an immutable (cannot be changed) sequence of data.
4+
5+
Tuples can be constructed in multiple ways:
6+
- Using a pair of parentheses to denote an empty tuple: `()`
7+
- Using a trailing comma for a singleton tuple (one value): `a,` or `(a,)`
8+
- Separating items with commas: `a, b, c` or `(a, b, c)`
9+
- Using the built-in `tuple()`: `tuple('abc') # = ('a', 'b', 'c')`
10+
11+
When referencing tuples, you say the 'n-tuple' where 'n' is the number of elements.
12+
For example: `myTuple = a, b, c, d, e` myTuple is a 5-tuple.
13+
14+
**Note** the comma `,` is actually what makes a tuple, not the parentheses `()`.
15+
The parentheses are optional except when they are needed such as for an empty tuple or to avoid ambiguity.
16+
Example: `f(a, b, c)` is a function call with three arguments. `f((a, b, c))` is a function call with one 3-tuple argument.
17+
18+
**_Instructions_**
19+
- Assign the appropriate length tuples to the given variables
20+
For example: `twoTuple = a, b` and `threeTuple = a, b, c`

Diff for: ‎challenges/2.3.Tuples/lesson_code.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Modify the code below ###
2+
3+
twoTuple = null
4+
5+
threeTuple = null
6+
7+
fiveTuple = null
8+
9+
tenTuple = null
10+
11+
### Modify the code above ###

Diff for: ‎challenges/2.3.Tuples/lesson_settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"lesson_title": "Tuples",
3+
"chapter_number": 2,
4+
"lesson_number": 3,
5+
"id": "59396524d230354d7438db36",
6+
"repl": ""
7+
}

Diff for: ‎challenges/2.3.Tuples/lesson_tests.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import unittest
2+
import lesson_code
3+
4+
class StringsTests(unittest.TestCase):
5+
def test_main(self):
6+
twoTuple = lesson_code.twoTuple
7+
threeTuple = lesson_code.threeTuple
8+
fiveTuple = lesson_code.fiveTuple
9+
tenTuple = lesson_code.tenTuple
10+
self.assertIsInstance(twoTuple, tuple)
11+
self.assertIsInstance(threeTuple, tuple)
12+
self.assertIsInstance(fiveTuple, tuple)
13+
self.assertIsInstance(tenTuple, tuple)
14+
self.assertEqual(len(twoTuple), 2)
15+
self.assertEqual(len(threeTuple), 3)
16+
self.assertEqual(len(fiveTuple), 5)
17+
self.assertEqual(len(tenTuple), 10)
18+

Diff for: ‎challenges/2.4.Lists/lesson_settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"lesson_title": "Lists",
3+
"chapter_number": 2,
4+
"lesson_number": 4,
5+
"id": "593967e6d230354d7438db39",
6+
"repl": ""
7+
}

Diff for: ‎challenges/2.5.Sets/lesson_settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"lesson_title": "Sets",
3+
"chapter_number": 2,
4+
"lesson_number": 5,
5+
"id": "593967ddd230354d7438db38",
6+
"repl": ""
7+
}

Diff for: ‎challenges/2.6.Dictionaries/lesson_settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"lesson_title": "Dictionaries",
3+
"chapter_number": 2,
4+
"lesson_number": 6,
5+
"id": "593967d4d230354d7438db37",
6+
"repl": ""
7+
}

Diff for: ‎generate-challenge-json.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ dir_list.forEach((dir) => {
5454
};
5555

5656
// attempt to autofill 'missing' challenges
57-
//
57+
//
5858
// const blank_lesson_obj = {
5959
// "id": null,
6060
// "title": "NA",

0 commit comments

Comments
 (0)
Please sign in to comment.