Description
Python is one of the few programming languages which is both simple and powerful. This book is designed to provide comprehensive material to both undergraduate and graduate students on the python programming concepts. This book has been written keeping in mind the syllabi designed for courses on Python Programming in various technical institutions and universities in India and gulf countries.
This book takes you through step-by-step process of learning the Python programming language. The main topics covered in the book include the basics of python programming, control statements such as if, if…else, if…elif…else which are used to transfer the control from one part of the program to another, and the loops which are used to run one or more statements repeatedly. The flow of execution is carried out through the break and continue statements. To take advantage of the iterative capabilities in a computer, you need to know how to include loops and conditional logic within your program.
Lists is discussed which acts as a container to hold items of different types. Creating, slicing, and indexing of lists is elaborated with examples. Various string methods to manipulate strings are described in detail. Indexing, slicing, and joining of strings are illustrated. One of the main pillars of Python programming language is the availability of data structures as built-in data types. Another built-in data type in Python programming language, Dictionary, is covered. Accessing and modifying the key: value pairs of Dictionaries is demonstrated. Also, usage of tuples and sets is illustrated with examples of tuples in returning multiple values from functions and storing heterogeneous elements of fixed sized is discussed. Mathematical operations like union and intersection are demonstrated using sets. Different methods supported by tuples and sets are identified.
This book also provides how to create functions, discussing types of functions like void and fruitful with examples. It also covered file handling using various operations like open, read, write, append, and close. Finally, it covered how to handle errors from the programs using error exceptions concepts.
Reviews
There are no reviews yet.