diff --git a/cs171/Lect03/hello.py b/cs171/Lect03/hello.py index 380903bae249f3ee98a3a271713a82f09dd30752..061448a8d1383c3b10b99d3b4667be38bd953c3a 100644 --- a/cs171/Lect03/hello.py +++ b/cs171/Lect03/hello.py @@ -1,62 +1 @@ -print("Hello Lecture 3!") - -name = "Moix" -longer = "This is a longer string of text" - #0123456789012345678901234567890 - -print(name) - -print(len(name)) -print(len("A literal string")) - -print(name[1:3]) -print(longer[ 1 : 10 : 2 ]) -print(len(longer[ 1 : 10 : 2 ])) - -print(3 + 2) -print("three" + "two") -print(str(1) + "three") - -digits = 98.6 - -print(float(int(float("99789.87")))) - -print(int(digits)) -print(digits) - -print(float("3e8")) - -print(ord('🐉')) -print(chr(128009 + 1)) - -print("She called him \"interesting\" the other day") -print('She called him "interesting" the other day') -print("Isn't is a \"contraction\"") -print("A\nB") - -price = 5 -item = "coffee" - -print(item + ":\t" + str(price)) -print("coffee:\t%.2f" % price) -print(f"{item}:\t{price:.2f}") - -names = ["you", "Carol", "Bob"] -names[0] = "anthony" -print(names.index("Bob")) - - - -print([f"{i} squared is {i**2}" for i in range(1, 10)]) - - -set1 = {"A", "B", "C"} -set2 = {"C", "A", "B", 7} - -print(set1) -print(set2) - -print(set1 == set2) - -print(7 in set1) -print(7 in set2) \ No newline at end of file +print("Hello CS 171") diff --git a/cs171/Lect05/hello.py b/cs171/Lect05/hello.py index ed48d0be89109bad5a460fac5b023cfb8e325254..061448a8d1383c3b10b99d3b4667be38bd953c3a 100644 --- a/cs171/Lect05/hello.py +++ b/cs171/Lect05/hello.py @@ -1,13 +1 @@ - -lecture = 5 - -while lecture <= 10: - # print(f"Hello Lecture {lecture}!") - lecture = lecture - 1 - -print("I am done. Finished at lecture", lecture) - -# -# if lecture <= 10: -# print(f"Hello Lecture {lecture}!") -# lecture = lecture + 1 \ No newline at end of file +print("Hello CS 171") diff --git a/cs172/Lect08/hello.py b/cs171/hello.py similarity index 100% rename from cs172/Lect08/hello.py rename to cs171/hello.py diff --git a/cs171/lect01/hello.py b/cs171/lect01/hello.py new file mode 100644 index 0000000000000000000000000000000000000000..061448a8d1383c3b10b99d3b4667be38bd953c3a --- /dev/null +++ b/cs171/lect01/hello.py @@ -0,0 +1 @@ +print("Hello CS 171") diff --git a/cs171/lect02/hello.py b/cs171/lect02/hello.py new file mode 100644 index 0000000000000000000000000000000000000000..061448a8d1383c3b10b99d3b4667be38bd953c3a --- /dev/null +++ b/cs171/lect02/hello.py @@ -0,0 +1 @@ +print("Hello CS 171") diff --git a/cs171/lect04/hello.py b/cs171/lect04/hello.py new file mode 100644 index 0000000000000000000000000000000000000000..061448a8d1383c3b10b99d3b4667be38bd953c3a --- /dev/null +++ b/cs171/lect04/hello.py @@ -0,0 +1 @@ +print("Hello CS 171") diff --git a/cs171/Lect01/age_demo.py b/previous/cs171/Lect01/age_demo.py similarity index 100% rename from cs171/Lect01/age_demo.py rename to previous/cs171/Lect01/age_demo.py diff --git a/cs171/Lect01/change.py b/previous/cs171/Lect01/change.py similarity index 100% rename from cs171/Lect01/change.py rename to previous/cs171/Lect01/change.py diff --git a/cs171/Lect01/concat.py b/previous/cs171/Lect01/concat.py similarity index 100% rename from cs171/Lect01/concat.py rename to previous/cs171/Lect01/concat.py diff --git a/cs171/Lect01/hellocs171.py b/previous/cs171/Lect01/hellocs171.py similarity index 100% rename from cs171/Lect01/hellocs171.py rename to previous/cs171/Lect01/hellocs171.py diff --git a/cs171/Lect01/inputexample.py b/previous/cs171/Lect01/inputexample.py similarity index 100% rename from cs171/Lect01/inputexample.py rename to previous/cs171/Lect01/inputexample.py diff --git a/cs171/Lect01/mathdemo.py b/previous/cs171/Lect01/mathdemo.py similarity index 100% rename from cs171/Lect01/mathdemo.py rename to previous/cs171/Lect01/mathdemo.py diff --git a/cs171/Lect01/printmultiple.py b/previous/cs171/Lect01/printmultiple.py similarity index 100% rename from cs171/Lect01/printmultiple.py rename to previous/cs171/Lect01/printmultiple.py diff --git a/cs171/Lect02/readme.txt b/previous/cs171/Lect02/readme.txt similarity index 100% rename from cs171/Lect02/readme.txt rename to previous/cs171/Lect02/readme.txt diff --git a/cs171/Lect03/LectureProblems.py b/previous/cs171/Lect03/LectureProblems.py similarity index 100% rename from cs171/Lect03/LectureProblems.py rename to previous/cs171/Lect03/LectureProblems.py diff --git a/cs171/Lect03/grades.py b/previous/cs171/Lect03/grades.py similarity index 100% rename from cs171/Lect03/grades.py rename to previous/cs171/Lect03/grades.py diff --git a/previous/cs171/Lect03/hello.py b/previous/cs171/Lect03/hello.py new file mode 100644 index 0000000000000000000000000000000000000000..380903bae249f3ee98a3a271713a82f09dd30752 --- /dev/null +++ b/previous/cs171/Lect03/hello.py @@ -0,0 +1,62 @@ +print("Hello Lecture 3!") + +name = "Moix" +longer = "This is a longer string of text" + #0123456789012345678901234567890 + +print(name) + +print(len(name)) +print(len("A literal string")) + +print(name[1:3]) +print(longer[ 1 : 10 : 2 ]) +print(len(longer[ 1 : 10 : 2 ])) + +print(3 + 2) +print("three" + "two") +print(str(1) + "three") + +digits = 98.6 + +print(float(int(float("99789.87")))) + +print(int(digits)) +print(digits) + +print(float("3e8")) + +print(ord('🐉')) +print(chr(128009 + 1)) + +print("She called him \"interesting\" the other day") +print('She called him "interesting" the other day') +print("Isn't is a \"contraction\"") +print("A\nB") + +price = 5 +item = "coffee" + +print(item + ":\t" + str(price)) +print("coffee:\t%.2f" % price) +print(f"{item}:\t{price:.2f}") + +names = ["you", "Carol", "Bob"] +names[0] = "anthony" +print(names.index("Bob")) + + + +print([f"{i} squared is {i**2}" for i in range(1, 10)]) + + +set1 = {"A", "B", "C"} +set2 = {"C", "A", "B", 7} + +print(set1) +print(set2) + +print(set1 == set2) + +print(7 in set1) +print(7 in set2) \ No newline at end of file diff --git a/cs171/Lect03/states.py b/previous/cs171/Lect03/states.py similarity index 100% rename from cs171/Lect03/states.py rename to previous/cs171/Lect03/states.py diff --git a/cs171/Lect04/bmi.py b/previous/cs171/Lect04/bmi.py similarity index 100% rename from cs171/Lect04/bmi.py rename to previous/cs171/Lect04/bmi.py diff --git a/cs171/Lect04/hello4.py b/previous/cs171/Lect04/hello4.py similarity index 100% rename from cs171/Lect04/hello4.py rename to previous/cs171/Lect04/hello4.py diff --git a/cs171/Lect04/myGrade.py b/previous/cs171/Lect04/myGrade.py similarity index 100% rename from cs171/Lect04/myGrade.py rename to previous/cs171/Lect04/myGrade.py diff --git a/cs171/Lect05/addodds.py b/previous/cs171/Lect05/addodds.py similarity index 100% rename from cs171/Lect05/addodds.py rename to previous/cs171/Lect05/addodds.py diff --git a/cs171/Lect05/for_range.py b/previous/cs171/Lect05/for_range.py similarity index 100% rename from cs171/Lect05/for_range.py rename to previous/cs171/Lect05/for_range.py diff --git a/cs171/Lect05/hangman.py b/previous/cs171/Lect05/hangman.py similarity index 100% rename from cs171/Lect05/hangman.py rename to previous/cs171/Lect05/hangman.py diff --git a/previous/cs171/Lect05/hello.py b/previous/cs171/Lect05/hello.py new file mode 100644 index 0000000000000000000000000000000000000000..ed48d0be89109bad5a460fac5b023cfb8e325254 --- /dev/null +++ b/previous/cs171/Lect05/hello.py @@ -0,0 +1,13 @@ + +lecture = 5 + +while lecture <= 10: + # print(f"Hello Lecture {lecture}!") + lecture = lecture - 1 + +print("I am done. Finished at lecture", lecture) + +# +# if lecture <= 10: +# print(f"Hello Lecture {lecture}!") +# lecture = lecture + 1 \ No newline at end of file diff --git a/cs171/Lect05/set_iteration.py b/previous/cs171/Lect05/set_iteration.py similarity index 100% rename from cs171/Lect05/set_iteration.py rename to previous/cs171/Lect05/set_iteration.py diff --git a/cs171/Lect05/stairs.py b/previous/cs171/Lect05/stairs.py similarity index 100% rename from cs171/Lect05/stairs.py rename to previous/cs171/Lect05/stairs.py diff --git a/cs171/Lect06/counting.py b/previous/cs171/Lect06/counting.py similarity index 100% rename from cs171/Lect06/counting.py rename to previous/cs171/Lect06/counting.py diff --git a/cs171/Lect06/hello.py b/previous/cs171/Lect06/hello.py similarity index 100% rename from cs171/Lect06/hello.py rename to previous/cs171/Lect06/hello.py diff --git a/cs171/Lect06/import.py b/previous/cs171/Lect06/import.py similarity index 100% rename from cs171/Lect06/import.py rename to previous/cs171/Lect06/import.py diff --git a/cs171/Lect06/nested.py b/previous/cs171/Lect06/nested.py similarity index 100% rename from cs171/Lect06/nested.py rename to previous/cs171/Lect06/nested.py diff --git a/cs171/Lect06/scope.py b/previous/cs171/Lect06/scope.py similarity index 100% rename from cs171/Lect06/scope.py rename to previous/cs171/Lect06/scope.py diff --git a/cs171/Lect06/swap.py b/previous/cs171/Lect06/swap.py similarity index 100% rename from cs171/Lect06/swap.py rename to previous/cs171/Lect06/swap.py diff --git a/cs171/Lect08/fibo.py b/previous/cs171/Lect08/fibo.py similarity index 100% rename from cs171/Lect08/fibo.py rename to previous/cs171/Lect08/fibo.py diff --git a/cs171/Lect08/fibo_iterative.py b/previous/cs171/Lect08/fibo_iterative.py similarity index 100% rename from cs171/Lect08/fibo_iterative.py rename to previous/cs171/Lect08/fibo_iterative.py diff --git a/cs171/Lect08/hello.py b/previous/cs171/Lect08/hello.py similarity index 100% rename from cs171/Lect08/hello.py rename to previous/cs171/Lect08/hello.py diff --git a/cs171/Lect08/readme.py b/previous/cs171/Lect08/readme.py similarity index 100% rename from cs171/Lect08/readme.py rename to previous/cs171/Lect08/readme.py diff --git a/cs171/Lect08/sumOfDigits.py b/previous/cs171/Lect08/sumOfDigits.py similarity index 100% rename from cs171/Lect08/sumOfDigits.py rename to previous/cs171/Lect08/sumOfDigits.py diff --git a/cs171/Lect08/summation.py b/previous/cs171/Lect08/summation.py similarity index 100% rename from cs171/Lect08/summation.py rename to previous/cs171/Lect08/summation.py diff --git a/cs171/Lect09/hello.py b/previous/cs171/Lect09/hello.py similarity index 100% rename from cs171/Lect09/hello.py rename to previous/cs171/Lect09/hello.py diff --git a/cs172/Lect01/broken_demo.py b/previous/cs172/Lect01/broken_demo.py similarity index 100% rename from cs172/Lect01/broken_demo.py rename to previous/cs172/Lect01/broken_demo.py diff --git a/cs172/Lect01/module.py b/previous/cs172/Lect01/module.py similarity index 100% rename from cs172/Lect01/module.py rename to previous/cs172/Lect01/module.py diff --git a/cs172/Lect01/notModule.py b/previous/cs172/Lect01/notModule.py similarity index 100% rename from cs172/Lect01/notModule.py rename to previous/cs172/Lect01/notModule.py diff --git a/cs172/Lect01/pringle.py b/previous/cs172/Lect01/pringle.py similarity index 100% rename from cs172/Lect01/pringle.py rename to previous/cs172/Lect01/pringle.py diff --git a/cs172/Lect01/script.py b/previous/cs172/Lect01/script.py similarity index 100% rename from cs172/Lect01/script.py rename to previous/cs172/Lect01/script.py diff --git a/cs172/Lect02/readme.txt b/previous/cs172/Lect02/readme.txt similarity index 100% rename from cs172/Lect02/readme.txt rename to previous/cs172/Lect02/readme.txt diff --git a/cs172/Lect03/EL.py b/previous/cs172/Lect03/EL.py similarity index 100% rename from cs172/Lect03/EL.py rename to previous/cs172/Lect03/EL.py diff --git a/cs172/Lect03/WorkingClock.py b/previous/cs172/Lect03/WorkingClock.py similarity index 100% rename from cs172/Lect03/WorkingClock.py rename to previous/cs172/Lect03/WorkingClock.py diff --git a/cs172/Lect03/demo.py b/previous/cs172/Lect03/demo.py similarity index 100% rename from cs172/Lect03/demo.py rename to previous/cs172/Lect03/demo.py diff --git a/cs172/Lect03/lect3.py b/previous/cs172/Lect03/lect3.py similarity index 100% rename from cs172/Lect03/lect3.py rename to previous/cs172/Lect03/lect3.py diff --git a/cs172/Lect03/len_demo.py b/previous/cs172/Lect03/len_demo.py similarity index 100% rename from cs172/Lect03/len_demo.py rename to previous/cs172/Lect03/len_demo.py diff --git a/cs172/Lect03/new.py b/previous/cs172/Lect03/new.py similarity index 100% rename from cs172/Lect03/new.py rename to previous/cs172/Lect03/new.py diff --git a/cs172/Lect03/old.py b/previous/cs172/Lect03/old.py similarity index 100% rename from cs172/Lect03/old.py rename to previous/cs172/Lect03/old.py diff --git a/cs172/Lect03/starter_code.py b/previous/cs172/Lect03/starter_code.py similarity index 100% rename from cs172/Lect03/starter_code.py rename to previous/cs172/Lect03/starter_code.py diff --git a/cs172/Lect04/hello.py b/previous/cs172/Lect04/hello.py similarity index 100% rename from cs172/Lect04/hello.py rename to previous/cs172/Lect04/hello.py diff --git a/cs172/Lect05/boilerplate.py b/previous/cs172/Lect05/boilerplate.py similarity index 100% rename from cs172/Lect05/boilerplate.py rename to previous/cs172/Lect05/boilerplate.py diff --git a/cs172/Lect05/bubble.py b/previous/cs172/Lect05/bubble.py similarity index 100% rename from cs172/Lect05/bubble.py rename to previous/cs172/Lect05/bubble.py diff --git a/cs172/Lect05/bubble_bounce.py b/previous/cs172/Lect05/bubble_bounce.py similarity index 100% rename from cs172/Lect05/bubble_bounce.py rename to previous/cs172/Lect05/bubble_bounce.py diff --git a/cs172/Lect05/bubbles.py b/previous/cs172/Lect05/bubbles.py similarity index 100% rename from cs172/Lect05/bubbles.py rename to previous/cs172/Lect05/bubbles.py diff --git a/cs172/Lect05/dragon_drop.py b/previous/cs172/Lect05/dragon_drop.py similarity index 100% rename from cs172/Lect05/dragon_drop.py rename to previous/cs172/Lect05/dragon_drop.py diff --git a/cs172/Lect05/drawable.py b/previous/cs172/Lect05/drawable.py similarity index 100% rename from cs172/Lect05/drawable.py rename to previous/cs172/Lect05/drawable.py diff --git a/cs172/Lect05/hello.py b/previous/cs172/Lect05/hello.py similarity index 100% rename from cs172/Lect05/hello.py rename to previous/cs172/Lect05/hello.py diff --git a/cs172/Lect05/mario_black.png b/previous/cs172/Lect05/mario_black.png similarity index 100% rename from cs172/Lect05/mario_black.png rename to previous/cs172/Lect05/mario_black.png diff --git a/cs172/Lect05/mario_blue.png b/previous/cs172/Lect05/mario_blue.png similarity index 100% rename from cs172/Lect05/mario_blue.png rename to previous/cs172/Lect05/mario_blue.png diff --git a/cs172/Lect05/mario_gold.png b/previous/cs172/Lect05/mario_gold.png similarity index 100% rename from cs172/Lect05/mario_gold.png rename to previous/cs172/Lect05/mario_gold.png diff --git a/cs172/Lect05/target.py b/previous/cs172/Lect05/target.py similarity index 100% rename from cs172/Lect05/target.py rename to previous/cs172/Lect05/target.py diff --git a/cs172/Lect06/PQ.py b/previous/cs172/Lect06/PQ.py similarity index 100% rename from cs172/Lect06/PQ.py rename to previous/cs172/Lect06/PQ.py diff --git a/cs172/Lect06/hello.py b/previous/cs172/Lect06/hello.py similarity index 100% rename from cs172/Lect06/hello.py rename to previous/cs172/Lect06/hello.py diff --git a/cs172/Lect06/myqueue.py b/previous/cs172/Lect06/myqueue.py similarity index 100% rename from cs172/Lect06/myqueue.py rename to previous/cs172/Lect06/myqueue.py diff --git a/cs172/Lect06/mystack.py b/previous/cs172/Lect06/mystack.py similarity index 100% rename from cs172/Lect06/mystack.py rename to previous/cs172/Lect06/mystack.py diff --git a/cs172/Lect07/hello.py b/previous/cs172/Lect07/hello.py similarity index 100% rename from cs172/Lect07/hello.py rename to previous/cs172/Lect07/hello.py diff --git a/cs172/Lect07/linkedlist.py b/previous/cs172/Lect07/linkedlist.py similarity index 100% rename from cs172/Lect07/linkedlist.py rename to previous/cs172/Lect07/linkedlist.py diff --git a/cs172/Lect07/node.py b/previous/cs172/Lect07/node.py similarity index 100% rename from cs172/Lect07/node.py rename to previous/cs172/Lect07/node.py diff --git a/previous/cs172/Lect08/hello.py b/previous/cs172/Lect08/hello.py new file mode 100644 index 0000000000000000000000000000000000000000..061448a8d1383c3b10b99d3b4667be38bd953c3a --- /dev/null +++ b/previous/cs172/Lect08/hello.py @@ -0,0 +1 @@ +print("Hello CS 171") diff --git a/cs172/Lect09/BSTree.py b/previous/cs172/Lect09/BSTree.py similarity index 100% rename from cs172/Lect09/BSTree.py rename to previous/cs172/Lect09/BSTree.py diff --git a/cs172/Lect09/Node..py b/previous/cs172/Lect09/Node..py similarity index 100% rename from cs172/Lect09/Node..py rename to previous/cs172/Lect09/Node..py diff --git a/cs172/Lect09/Node.py b/previous/cs172/Lect09/Node.py similarity index 100% rename from cs172/Lect09/Node.py rename to previous/cs172/Lect09/Node.py diff --git a/cs172/Lect09/hello.py b/previous/cs172/Lect09/hello.py similarity index 100% rename from cs172/Lect09/hello.py rename to previous/cs172/Lect09/hello.py