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

This commit is contained in:
Josh Mudge 2018-12-15 14:05:38 -07:00
parent 2453d44b6c
commit e5793ce5cd
31 changed files with 54 additions and 4 deletions

4
.gitignore vendored
View File

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

View File

@ -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 Normal file
View File

@ -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 weve 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")

11
Misc. learning/pass.py Normal file
View File

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

View File

@ -2,6 +2,6 @@
These are an assortment of my Python scripts, most of them while following "Python The Hard Way", some while not. 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)

View File

@ -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.