Logical Operator

  • A logical operator is a symbol or word used to connect two or more expressions
isSaturday = True
isHoliday = False

if not isHoliday:
    print('please start to work')
else:
    print('take time off, it is a holiday!')
please start to work

Selection?

  • A seletion is a programming construct where a section of code is run only if a condition is met, it determines which path a program takes when it is running
hasGas = True
noGas = False

if not noGas:
    print('you have gas already')
else:
    print('you need to fill your car up with gas')
you have gas already

Iteration?

  • An iteration is a loop and doing something again until a condition is met, like you put away your computer when you are finished with your work.
nums = [1,2,3,4,5]
b = []
for i in nums:
    b.append(i**2)
    print(b)
[1]
[1, 4]
[1, 4, 9]
[1, 4, 9, 16]
[1, 4, 9, 16, 25]

Substring?

  • A substring is part of an existing string
greeting = ('what up everyone')
print(greeting[:])
print(greeting[:5])
what up everyone
what 

If statement

  • if proved true, performs a function
x = 5
y = 10

if (x > 0):
    print('x is greater than 0')
else:
    print('x is less than 0')
x is greater than 0

Variable

  • a value that can change depending on the conditions
goalsScored = ('you have scored 10 goals')
print(goalsScored)
10

Jupyter

  • lets you write and run code at the same time

Strings

  • series of characters (numbers, letters, etc), one example of a string is your name or your id because strings can contain both numbers and letters.
menu = ('mexican food')
print(f"your type of food today will be: {menu}")
your type of food today will be: mexican food

Lists

  • sequences of elements with each element being a variable. An example of a list can be the names of the students in this classroom.
nums = [1,2,3,45,55]
print(nums)
[1, 2, 3, 45, 55]

What is an algorithm?

  • An algorithm is a finite set of instruction that accomplish a task, it can be expressed by natural language, diagrams, and various other ways.
winter = True
summer = False

if not winter:
    print('its summertime')
else:
    print('its winter')
its winter

Adding more vocab:

Square brackets

  • [lists and tuples go inside]:

For Loop

  • used for repeating a sequence

Metadata

  • a set of data that describes and gives information about other data.

Binary

  • a coding system using the binary digits 0 and 1 to represent a letter, digit, or other character in a computer or other electronic device. Calculate numbers by using the tens place method.

Preprocessing

  • A step in the data mining and data analysis process that takes raw data and transforms it into a format (HTML) that can be understood and analyzed by computers and machine learning.

Abstraction Process

  • Through the process of abstraction, a programmer hides all but the relevant data about an object in order to reduce complexity and increase efficiency.

Liquid

  • Code that exits in the programming environment, but gets converted to something else when sent to the browser