Browse Source

RE-organize, update README links to that effect and create Codecademy.md

master
Josh Mudge 5 years ago
parent
commit
e5793ce5cd
  1. 4
      .gitignore
  2. 0
      3exercises/YO5.txt
  3. 0
      3exercises/YO6.txt
  4. 0
      3exercises/ex10-breakallthngs.py
  5. 0
      3exercises/ex10.py
  6. 0
      3exercises/ex11_Fun.py
  7. 0
      3exercises/ex12_ss.py
  8. 0
      3exercises/ex13.py
  9. 0
      3exercises/ex14.py
  10. 0
      3exercises/ex15.py
  11. 0
      3exercises/ex15_sample.txt
  12. 0
      3exercises/ex16.py
  13. 0
      3exercises/ex17.py
  14. 0
      3exercises/ex18.py
  15. 0
      3exercises/ex19.py
  16. 0
      3exercises/ex7-dots.py
  17. 0
      3exercises/ex8.py
  18. 0
      3exercises/ex9-mod.py
  19. 0
      3exercises/ex9.py
  20. 11
      3exercises/passing-parmseasy.py
  21. 11
      Codecademy.md
  22. 0
      Misc. learning/bank.py
  23. 11
      Misc. learning/pass.py
  24. 0
      Misc. learning/passing-parms.py
  25. 0
      Misc. learning/python-learning.py
  26. 0
      Misc. learning/python-parse-html.py
  27. 0
      Misc. learning/python-web.py
  28. 4
      README.md
  29. 0
      Resources/install-dbus-python.sh
  30. 0
      Resources/install-python.md
  31. 17
      Resources/passing-parmseasy.md

4
.gitignore

@ -1,2 +1,2 @@
out.txt
Python3HardWay.pdf
3exercises/out.txt
Resources/Python3HardWay.pdf

0
YO5.txt → 3exercises/YO5.txt

0
YO6.txt → 3exercises/YO6.txt

0
ex10-breakallthngs.py → 3exercises/ex10-breakallthngs.py

0
ex10.py → 3exercises/ex10.py

0
ex11_Fun.py → 3exercises/ex11_Fun.py

0
ex12_ss.py → 3exercises/ex12_ss.py

0
ex13.py → 3exercises/ex13.py

0
ex14.py → 3exercises/ex14.py

0
ex15.py → 3exercises/ex15.py

0
ex15_sample.txt → 3exercises/ex15_sample.txt

0
ex16.py → 3exercises/ex16.py

0
ex17.py → 3exercises/ex17.py

0
ex18.py → 3exercises/ex18.py

0
ex19.py → 3exercises/ex19.py

0
ex7-dots.py → 3exercises/ex7-dots.py

0
ex8.py → 3exercises/ex8.py

0
ex9-mod.py → 3exercises/ex9-mod.py

0
ex9.py → 3exercises/ex9.py

11
3exercises/passing-parmseasy.py

@ -0,0 +1,11 @@
def function1(arg):
print(arg)
def function2(argument):
print(argument)
argument = argument + ". HI!"
function1(argument)
function2("Hello World")

11
Codecademy.md

@ -0,0 +1,11 @@
# Object-oriented
"The main goal of an object oriented language is to make code reusable – we do this through the use of classes and objects. If we want to design a new type of car, we can start with what they all have in common: wheels, seats, a frame. Now that we’ve determined what cars have in common, we can more easily implement any type of car we want by starting from that basic blueprint."
https://discuss.codecademy.com/t/what-does-it-mean-that-python-is-an-object-oriented-language/297314
# Errors
print("With mismatched quotes will cause a SyntaxError")
print("Without quotes will cause a NameError")

0
bank.py → Misc. learning/bank.py

11
Misc. learning/pass.py

@ -0,0 +1,11 @@
def funciton1(args): {
print(args)
}
def function2(argument): {
print(argument)
#argument2 = argument + "hi"
function1(args)
}
function2("Hello World")

0
passing-parms.py → Misc. learning/passing-parms.py

0
python-learning.py → Misc. learning/python-learning.py

0
python-parse-html.py → Misc. learning/python-parse-html.py

0
python-web.py → Misc. learning/python-web.py

4
README.md

@ -2,6 +2,6 @@
These are an assortment of my Python scripts, most of them while following "Python The Hard Way", some while not.
The most interesting (in my opinion) are [The Python Caeser Cipher Helper](Caeser-Cipher), [The Dots of Death (Use with caution)](ex7-dots.py) and the latest is in Alpha state and is sadly lacking parameters which makes testing hard: [Sermon-Upload](Sermon-Upload)
The most interesting (in my opinion) are [The Python Caeser Cipher Helper](Caeser-Cipher), [The Dots of Death (Use with caution)](3exercises/ex7-dots.py) and the latest is in Alpha state and is sadly lacking parameters which makes testing hard: [Sermon-Upload](Sermon-Upload)
You can also find out if you're a giant here (Read the comments): [Short and Tall](ex11_Fun.py)
You can also find out if you're a giant here (Read the comments): [Short and Tall](3exercises/ex11_Fun.py)

0
install-dbus-python.sh → Resources/install-dbus-python.sh

0
install-python.md → Resources/install-python.md

17
Resources/passing-parmseasy.md

@ -0,0 +1,17 @@
```
def function1(arg):
print(arg)
def function2(argument):
print(argument)
argument = argument + ". HI!"
function1(argument)
function2("Hello World")
```
So, what are we doing? We're giving function2 an argument that it prints, modifies and sends it to function1. Function1 then prints the new argument that was passed to it by funciton2 and we're done. If you have any questions, hit me up in the comments.
Loading…
Cancel
Save