A book to learn Python Programming through simple programs. The source code of simple programs in Python are presented in this book.
Python is a high level programming language. It is more popular now because of its simplicity and code readability. It has fewer code when compared to Java and C++. Python works on different platforms like Windows, Mac, Linux, Solaris, Raspberry Pi, etc.
Its simple syntax allows programmers to write complex programs in fewer lines of code. Python lets the programmers to work quickly and integrate systems more efficiently. It is used in many organizations as it supports multiple programming paradigms. It also performs automatic memory management. Python can be treated in a procedural way, an object-orientated way or a functional way.
At present, Python is the fastest growing programming language. According to the TIOBE Index, Python is the third most popular programming language in the world currently.
Many top companies such as Google, Facebook, Mozilla, Quora, etc. use Python Web Framework. The reason for the rapid growth of Python is its use in Data Science.
Python is used for the development of following applications:
• Internet applications development (server-side) • Software development • Desktop GUIs (Graphical User Interfaces) • Enterprise and Business applications • Mathematics Applications • Database Access • Web frameworks and applications • Scientific & Numeric Applications • Education Applications • Network Programming • Game Development • System scripting. • Operating Systems • Language Development • Prototyping
This book guides you to learn Python Programming through simple programs and their output. The table of contents of this book is given below :
Introduction to Python Why Python is Popular Features of Python Advantages of Python How to install Python How to run Python What is Python IDLE A Simple Python program to print a message Variable Assignment Statement Program to find the sum of two numbers Program to display the output with a message Input Statement Program to input two numbers and sum them Program to find the biggest of two numbers Program to find the given number is positive or negative Program to find the given number is odd or even Program to find the area of a rectangle Program to find the area of a circle Program to calculate Simple Interest Program to calculate Compound Interest Program to find the biggest of 3 numbers Program to print the series 1,2,3,… 10 Program to print the series 2, 4, 6, … 20 Program to print the series 10, 9, 8, 7, … 1 Program to find the sum of series 1 + 2 + 3 +… + 10 Program to find factorial of a number Program to print Fibonacci series Program to find the reverse of a string Creation of List Adding values in a list at runtime Sorting a List Sorting a List in descending order Slicing a List Creating Dictionary Adding new items to a Dictionary Removing an item from Dictionary