Python Numpy Totorial Flashcards
What is Jupyter notebook used for?
A Jupyter notebook lets you write and execute Python code locally in your web browser.
What is Colab used for?
Colab on the other hand is Google’s flavor of Jupyter notebooks that is particularly suited for machine learning and data analysis and that runs entirely in the cloud.
What is Python ?
Python is a high-level, dynamically typed multiparadigm programming language.
Why Python ?
Python code is often said to be almost like pseudocode, since it allows you to express very powerful ideas in very few lines of code while being very readable.
Python implements all of the usual operators for Boolean logic, but uses English words rather than symbols
True
Python includes several built-in container types:
lists, dictionaries, sets, and tuples.
What is a list?
A list is the Python equivalent of an array, but is resizeable and can contain elements of different types:
What is slicing?
In addition to accessing list elements one at a time, Python provides concise syntax to access sublists; this is known as slicing:
What is a dictionary ?
A dictionary stores (key, value) pairs, similar to a Map in Java or an object in Javascript. You can use it like this:
What is a set?
A set is an unordered collection of distinct elements.
What is a tuple?
A tuple is an (immutable) ordered list of values. A tuple is in many ways similar to a list; one of the most important differences is that tuples can be used as keys in dictionaries and as elements of sets, while lists cannot.
How are Python functions defined?
Using the def keyword.
How are Python classes defined?
The syntax for defining classes in Python is class:
What is Numpy?
Numpy is the core library for scientific computing in Python. It provides a high-performance multidimensional array object, and tools for working with these arrays.
Numpy array?
A numpy array is a grid of values, all of the same type, and is indexed by a tuple of nonnegative integers.