D335 Intro to Python Study-Questions and
Answers Verified 100% Correct
Whitespace
Any space, tab, or newline
Empty space in the program
input()
Data that is entered into the computer system via an input or storage device.
Causes the interpreter to wait until the user has entered data of some kind
String
Represents a sequence of characters
type()
returns what "type" of data ex: int, float, str
int()
Converts strings to integers
my_string = '123'
my_int = int('123')
, Syntax Error
a mistake in the program where the rules of the programming language are not followed.
Runtime Error
Error wherein a program's syntax is correct but the program attempts an impossible
operation. (dividing by zero, multiplying strings like 'Hello' * 'ABC')
Crash
An abrupt and unintended termination of a program
SyntaxError
The program contains invalid code that cannot be understood
IndentationError
The lines of the program are not properly indented
ValueError
An invalid value is used - can occur if giving letters to int()
NameError
The program tries to use a variable that does not exist
TypeError
An operation uses incorrect types - can occur if adding an integer to a string
IDE
Integrated Development Environment
Scripting Language
a programming method to execute programs without the need for compilation
Script
Answers Verified 100% Correct
Whitespace
Any space, tab, or newline
Empty space in the program
input()
Data that is entered into the computer system via an input or storage device.
Causes the interpreter to wait until the user has entered data of some kind
String
Represents a sequence of characters
type()
returns what "type" of data ex: int, float, str
int()
Converts strings to integers
my_string = '123'
my_int = int('123')
, Syntax Error
a mistake in the program where the rules of the programming language are not followed.
Runtime Error
Error wherein a program's syntax is correct but the program attempts an impossible
operation. (dividing by zero, multiplying strings like 'Hello' * 'ABC')
Crash
An abrupt and unintended termination of a program
SyntaxError
The program contains invalid code that cannot be understood
IndentationError
The lines of the program are not properly indented
ValueError
An invalid value is used - can occur if giving letters to int()
NameError
The program tries to use a variable that does not exist
TypeError
An operation uses incorrect types - can occur if adding an integer to a string
IDE
Integrated Development Environment
Scripting Language
a programming method to execute programs without the need for compilation
Script