mutable and Immutable types of Pythons built in types Mutable built-in types
- List
- Sets
- Dictionaries
Immutable built-in types
- Strings
- Tuples
- Numbers
pass in Python?
Pass means, no-operation Python statement, or in other words it is a place holder in compound statement, where there should be a blank left and nothing has to be written there.
unittest in Python?
A unit testing framework in Python is known as unittest. It supports sharing of setups, automation testing, shutdown code for tests, aggregation of tests into collections etc.
Instead of
unittest.main(), there are other ways to run the tests with a finer level of control, less terse output, and no requirement to be run from the command line. For example, the last two lines may be replaced with:
Running the revised script from the interpreter or another script produces the following output:
No comments:
Post a Comment