Python from Udemy DS Course Flashcards
Basic Python and use for stats
the usual name for Human Readable Code?
Source Code
A formal definition of programming?
Taking a task, writing it down in a programming language that the computer can understand and execute
What is the difference between computer science and programming?
‘Computer science’ is about what computers CAN do.
‘Programming’ is telling a computer WHAT to do
What are the following languages good for:
PHP
C++
Python and ‘R’
PHP = Web programming
C++ = programming devices
Python and ‘R’ = Data science and finance
What is being created in the following code, and what does it do:
def plus_ten (x): return x + 10
A function called ‘plus_ten’ which takes a variable ‘x’ as input, and returns ‘x’ + 10
Why should you learn python?
Powerful calculation tools, extendable, multi platform, with intuitive syntax and is easy to learn
Give an example of something that allows Python to be used for web programming
The django framework
Is python a high level or low level language?
Low level languages are machine code (closer to the metal)
what sort of document has a *.ipynb extension?
Python Notebook Document, saved by ‘Jupyter’
What is Jupyter and what does it does it do?
It store scripts, that can include human readable text, code, AND output such as graphs and results
What is Anaconda
A software package that contains BOTH Python and Jupyter and PACKAGES for scientific computing and data science
What is an operand?
What an operator operates on.
in ‘4 + 3’ the 4 and the 3 are operands, and the ‘+’ is an operator
What are identity operators?
‘is’ and ‘is not’ function similar to == and !=
work with boolean true false as well
what does the abs(x) function do?
It returns the the non-negative value of x without regard to its sign value of a number.
abs stands for ‘absolute’ number
what does the function pow(x,y) do?
returns x to the power of y