Skip to content

Commit 4538847

Browse files
committed
Added starter files
0 parents  commit 4538847

File tree

14 files changed

+75
-0
lines changed

14 files changed

+75
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__pycache__
2+
.vscode
3+
.DS_Store

python_sandbox_starter/classes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# A class is like a blueprint for creating objects. An object has properties and methods(functions) associated with it. Almost everything in Python is an object
2+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# If/ Else conditions are used to decide to do something based on something being true or false
2+
3+
4+
5+
# Comparison Operators (==, !=, >, <, >=, <=) - Used to compare values
6+
7+
8+
9+
# Logical operators (and, or, not) - Used to combine conditional statements
10+
11+
12+
13+
14+
# Membership Operators (not, not in) - Membership operators are used to test if a sequence is presented in an object
15+
16+
17+
18+
19+
# Identity Operators (is, is not) - Compare the objects, not if they are equal, but if they are actually the same object, with the same memory location:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# A Dictionary is a collection which is unordered, changeable and indexed. No duplicate members.

python_sandbox_starter/files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Python has functions for creating, reading, updating, and deleting files.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# A function is a block of code which only runs when it is called. In Python, we do not use parentheses and curly brackets, we use indentation with tabs or spaces
2+
3+
4+
5+
# A lambda function is a small anonymous function.
6+
# A lambda function can take any number of arguments, but can only have one expression. Very similar to JS arrow functions
7+

python_sandbox_starter/lists.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# A List is a collection which is ordered and changeable. Allows duplicate members.

python_sandbox_starter/loops.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).
2+
3+
4+
5+
# While loops execute a set of statements as long as a condition is true.

python_sandbox_starter/modules.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# A module is basically a file containing a set of functions to include in your application. There are core python modules, modules you can install using the pip package manager (including Django) as well as custom modules

python_sandbox_starter/py_json.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# JSON is commonly used with data APIS. Here how we can parse JSON into a Python dictionary

0 commit comments

Comments
 (0)