Changes

Jump to: navigation, search

OPS435 Online Lab1

19 bytes added, 23:02, 12 May 2020
Part I - Interactive (leaning) mode: using the Python Interactive Shell
>>>
</source>
:* We are interested in the '''object''' named '''__builtins__''' at this moment. We can ask the Python interpreter to tell us more about the '''__builtins__''' object by passing its name '''__builtins__builtins__''' as a the function argument to the '''dir()''' function: <source>>>> dir(__builtins__)
['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError',
...
'type', 'vars', 'zip']
</source>
:* The above output shows a list of the so-called '''built-in run-time error codes''' items and '''bulit-in functionsfunction names''' items. We are going to learn how to use them effectively in order to save our coding effort when writing Python programs/scripts.
:* Let starts with the following built-in functions:
:** print()
1,760
edits

Navigation menu