ABSTRACT

This chapter will introduce fundamental Python components, including classes and objects, syntax, data types, operators, functions, flow control, exceptions, input/output, and modules. One of Python's most important characteristics is object-oriented structure. Foundational Python programming requires understanding concepts about classes and objects, inheritance, composition, package, and class sharing. Python provides the mechanism to define a class and create objects from that class. Python is case sensitive, meaning capital and lowercase letters represent different identifiers. In Python, indentation is important for grouping code. Indented lines start at different positions or column; numbers are not allowed, they will trigger an IndentationError. In python, data types are dynamic so that you do not have to define a variable's data type. The Python interpreter has built-in functions that are always available.