A block of statements which return the specific task.
What is a function?
Also known as a blue print or template.
What is a class?
Special objects Python creates to manage errors that arise while a program is running.
What is an exception?
The first level of software testing where the smallest testable parts of a software are tested. This is used to validate that each unit of the software performs as designed.
What is unit testing?
a1 = 0.2
1b1 = 0.1
print (a1+1b1)
What is wrong variable name?
This character is used to make a single-line comment.
What is #?
Making an object from a class.
What is instantiation?
Method that removes any whitespace characters from the right side of a string.
What is rstrip()?
A set of conditions which is used to determine whether a system under test works correctly.
What is a test case?
universe_age = 14_000_000_000
print(universe.age)
What is dot instead of underscore?
A function begins with this keyword.
What is def?
A function that is part of a class.
What is a method?
When your image file is located in the same directory as your python file.
What is relative file path?
This statement is used to check if the result obtained is equal to the expected result.
What is assertEqual()?
"DAILY DOUBLE":
magicians = ['alice', 'david', 'carolina']
for magician in magicians
print(magician)
What is missing colon?
These objects are present in the function header.
What are function name and parameters/arguments?
You can use any function or class in the standard library by including a simple statement at the top of your file.
What is import?
Allows you to save user data so it isn't lost when your program stops running.
What is json module?
The two types of Unit Testing.
What are manual and automated?
dimensions = (200,50)
dimensions[0] = 250
What is a tuple? Can't change value.
A string used to document a Python module, class, function or method, so programmers can understand what it does without having to read the details of the implementation. Also, it is a common practice to generate online (html) documentation automatically from these.
What is a docstring?
You can keep your program clean and easy to read by moving these into a module.
What is a class?
Improve your code by breaking it up into a series of functions that have specific jobs.
What is refactoring?
The very first Python-based automated unit test framework that was designed to work with the Python standard library.
What is unittest?
with open("text_files//filename.text") as file_object
File is located on your desktop instead.
What is absolute file path?