1/11
Intro to Scientific Computing; Python basics: calculator, printing, packages, and errors; Python variables; Python comments; Data types, round-off error, and machine precision
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
code 0
Success
code 1
Error
An example of a variable is…
x = 4
String
Block of code that consists of text
Variable assignment vs Expression
Expressions are evaluated while assignments are assigned
Tolerance Check
|a - b| < Tolerance
Absolute value with numpy
numpy.abs(x)
SyntaxError
The code is structured incorrectly
NameError
A function or name that Python doesn’t know is being used
TypeError
An error related to the types of variables in the code
Round-Off Error
The numerical difference between the answer Python calculates and what the answer should be
Scientific notation of 1.000 in Python
1e-3