diff --git a/textbook/parsons-assets/parsons-problems/html/homework-1-1.html b/textbook/parsons-assets/parsons-problems/html/homework-1-1.html index 403457f..f848838 100644 --- a/textbook/parsons-assets/parsons-problems/html/homework-1-1.html +++ b/textbook/parsons-assets/parsons-problems/html/homework-1-1.html @@ -27,31 +27,31 @@

Compose your code here

- price_num = float(price_num) * 1.1 + print(price_num)
- for price in book_prices: + price_num = price[1:]
- print(price_num) + for price in book_prices:
- price_num = price[1:] + book_prices = ['$55.99', '$119.95', '$13.95']
- book_prices = ['$55.99', '$119.95', '$13.95'] + price_num = float(price_num) * 1.1
diff --git a/textbook/parsons-assets/parsons-problems/html/homework-1-2.html b/textbook/parsons-assets/parsons-problems/html/homework-1-2.html index 87da119..4f4ce44 100644 --- a/textbook/parsons-assets/parsons-problems/html/homework-1-2.html +++ b/textbook/parsons-assets/parsons-problems/html/homework-1-2.html @@ -27,37 +27,37 @@

Compose your code here

- print(depts) + course_info = course.split()
- courses = ['CHEM 1001 10', 'BISC 1111 10', 'BISC 2207 10'] + depts.append(course_info[0])
- course_info = course.split() + depts = []
- depts.append(course_info[0]) + for course in courses:
- depts = [] + courses = ['CHEM 1001 10', 'BISC 1111 10', 'BISC 2207 10']
- for course in courses: + print(depts)
diff --git a/textbook/parsons-assets/parsons-problems/html/homework-2-GR.html b/textbook/parsons-assets/parsons-problems/html/homework-2-GR.html index e6b41b7..d8c21ef 100644 --- a/textbook/parsons-assets/parsons-problems/html/homework-2-GR.html +++ b/textbook/parsons-assets/parsons-problems/html/homework-2-GR.html @@ -33,7 +33,7 @@

Compose your code here

- course_dict = {} + course_info = course.split()
@@ -45,31 +45,31 @@

Compose your code here

- for course in courses: + print(courses_db)
- print(courses_db) + course_dict['course'] = course_info[1]
- courses_db = [] + course_dict = {}
- courses = ['CHEM 1001 10', 'CHEM 1002, 10', 'CHEM 1002 11', 'BISC 1100 10'] + for course in courses:
- course_info = course.split() + courses_db = []
@@ -81,7 +81,7 @@

Compose your code here

- course_dict['course'] = course_info[1] + courses = ['CHEM 1001 10', 'CHEM 1002, 10', 'CHEM 1002 11', 'BISC 1100 10']