Читать книгу Introduction to Python Programming for Business and Social Science Applications - Frederick Kaefer - Страница 35

Introduction

Оглавление

Programming in the Python language uses instructions to tell the computer what actions you want performed. This chapter begins by discussing good programming practice. We then explain the basic elements of Python code, beginning with Python keywords, objects, operators and delimiters, data types, and variables. We explain comments and assignment statements next. Python code statements must comply with strict syntax rules in Python and the incorrect specification of code statements result in errors. This chapter explains the three types of errors that often result. Following the discussion of error types, we introduce functions. The packaging of Python code into smaller components helps to organize code and simplify the identification and resolution of errors. We also illustrate commonly used Python built-in functions and their usage. The chapter concludes with the development of a code module used by Python code in a different file.

Introduction to Python Programming for Business and Social Science Applications

Подняться наверх