1/27
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Selection Structure
Provides a choice between two alternatives
single alternative selection structure
is a type of decision-making control structure in programming.
Iteration
Most useful and powerful structure and Allows the repetition of instructions or statements in the loop body
for loop
is generally used for traversing and manipulating arrays
while loop
Loops that are dependent on a sentinel value (or indicator) are better coded using a ________
accumulator
is a variable that “sums up” or accumulates values
sentinel value
It is a special type of value that allows a different number of inputs by the user each time.
Break Statement
Force immediate termination of a loop, bypassing the conditional expression and any remaining code in the body of the loop.
else keyword
The ________ in a for loop specifies a block of code to be executed when the loop is finished:
continue statement
cause control to be transferred directly to the conditional expression that controls the loop.
pass statement
is a null operation; nothing happens when it executes.
Exceptions
Events or errors that disrupt the normal flow of execution of a program.
Checked Exception
they are subject to the Catch or Specify Requirement. Otherwise, the program code will not compile, are errors that the program can deal with.
Errors
are generally beyond the control of the program.
Runtime Exception
are not subject to the Catch or Specify Requirement and are, also, unchecked exceptions. These exceptions are the result of programming flaws
try and except block
is used to catch and handle exceptions. Python executes code following the try statement as a “normal” part of the program.
try block
lets you test a block of code for errors.
Except block
will be executed if the try block raises an error.
finally block
if specified, will be executed regardless if the try block raises an error or not.
Raised Keyword
Use to execute an exception depending on the condition
Matlab
is not considered a real programming language
SciPy
Numerical integration and optimization.
NumPy
Provides N-dimensional array objects, linear algebra, Fourier transforms.
Jupyter
Changes how programming is done in Python.
Requests library:
Simplifies HTTP operations, supports verbs like GET, POST, PUT, DELETE.
MACHINE LEARNING
Effective and adaptive tool to learn from experience and it originates from Computer Science and Statistics.
Scikit-Learn
Well-known Machine Learning tool built on top of other
Python scientific tools like NumPy, SciPy, and Matplotlib
OBJECT RELATIONAL MAPPING (ORM)
Connects object-oriented programming to relational databases.