This function is used to output text
What is print()
This package is widely used for numerical computing and arrays
What is numpy?
This is the first and easiest thing you do to debug your program
What is print out intermediately results/check the datatype of your variables?
x = [i**2 for i in range(6)]
What is creates a list of square numbers from 0 to 5?
This is a step-by-step set of instructions to solve a problem
What is an algorithm?
This symbol is used to comment out a line of code
What is #
This package is known for creating static, animated, and interactive visualizations
What is Matplotlib?
This is everything in Python
What is indentation?
x=-9
if x>0
print('hello world')
else
print('hello sucker')
What is nothing, there is a syntax error?
To model uncertainty, randomness, or stochastic processes in data and systems, you should use these
What are random number generators?
In this year, Python was released and the Soviet Union ceased to exist
What is 1991?
This keyword is used to define a function
What is def?
What is Pandas?
This is a sin when creating graphs
What is not labeling your axes?
list(filter(lambda x: x % 2 == 0, range(10)))
Want to interface with a programming language? Use an IDE which stands for this
What is Integrated Development Environment?
Surprisingly, you can use these in variable names
What are emojis
This function returns the length of an object
What is len?
This package can generate random numbers
What is random/scipy/numpy?
Dr. Kelley has written this style guide suggestion many times in feedback, but half the class refuses to follow it
What is give comments their own line?
[x for x in range(21) if x % 3 == 0 and x % 2 == 0]
What is generates a list of numbers from 0 to 21 that are divisible by both 2 and 3?
What is an interpreted language?
This Python conference is held annually for enthusiasts and was most recently held in Pittsburgh
What is PyCon?
This package is used for deep learning and offers tools for neural networks
Good advice whenever Python is giving you a weird error and you swore it was working the other day
What is restart the kernel/Python/spyder?
import re
pattern = r"\b[a-zA-Z]{4}\b"
text = "This is a test of regex in Python"
result = re.findall(pattern, text)
What is returns all 4 letter words: This and test?
This algorithm is standard in most random number generators
What is the Mersenne Twister?
This command will print the "Zen of Python" mantra