Open main menu

CDOT Wiki β

Changes

OPS435 Online Lab1

710 bytes added, 16:55, 12 May 2020
Task 2 - exploring Python's built-in functions
:** <source>python3 sample.py test 2>/dev/null </source>
== Task 2 - exploring and using Python's built-in functions ===== Part I - Interactive (leaning) mode: using the Python Interactive Shell ===:* In this mode, you can instruct the Python Interpreter to execute python statement (or expression) one at a time.:* To start the Python version 3 Interactive shell, type the command <source>python3</source> at the Linux command prompt.:* You should get a startup message similar to the following:<pre> [raymond.chan@mtrx-node05pd lab1]$ python3 Python 3.6.8 (default, Apr 2 2020, 13:34:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> </pre>=== Part II - Script (execution) mode: creating Python script ===
:* print() function
 
== Task 3 - exploring Python's built-in data objects ==
:* integer object
1,760
edits