# Python Exercises, Practice, Solution

## What is Python language?

Python is a widely used high-level, general-purpose, interpreted, dynamic programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than possible in languages such as C++ or Java.

Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library

The best way we learn anything is by practice and exercise questions. We have started this section for those (beginner to intermediate) who are familiar with Python.

Hope, these exercises help you to improve your Python coding skills. Currently, following sections are available, we are working hard to add more exercises .... Happy Coding!

**List of Python Exercises :**

- Python Basic (Part -I) [ 150 Exercises with Solution ]
- Python Basic (Part -II) [ 63 Exercises with Solution ]
- Python Data Types - String [ 80 Exercises with Solution ]
- Python JSON [ 9 Exercises with Solution ]
- Python Data Types - List [ 71 Exercises with Solution ]
- Python Data Types - Dictionary [ 38 Exercises with Solution ]
- Python Data Types - Tuple [ 24 Exercises with Solution ]
- Python Data Types - Sets [ 15 Exercises with Solution ]
- Python Array [ 13 Exercises with Solution ]
- Python Conditional statements and loops [ 44 Exercises with Solution]
- Python functions [ 20 Exercises with Solution ]

**Python Data Structures and Algorithms**

- Data Structure [ 30 Exercises with Solution ]
- Search and Sorting [ 23 Exercises with Solution ]
- Linked List [ 14 Exercises with Solution ]
- Binary Search Tree [ 6 Exercises with Solution ]
- Recursion [ 11 Exercises with Solution ]
- Python Date Time [ 52 Exercises with Solution ]
- Python Class [ 12 Exercises with Solution ]
- Python Math [ 82 Exercises with Solution ]
- Python File Input Output [ 17 Exercises with Solution ]
- Python Regular Expression [ 51 Exercises with Solution ]
- More to Come !

**Python Challenges :**

- Python Challenges: Part -1 [ 1- 49 ]
- More to come

**Python Mini Projects :**

- Python Projects: [ 5 ]
- More to come

**Python GUI tkinter**

- Python tkinter Basic [ 5 Exercises with Solution]
- Python tkinter widgets [ 10 Exercises with Solution]

** Python NumPy :**

- Python NumPy Home
- Python NumPy Basic [ 40 Exercises with Solution ]
- Python NumPy arrays [ 160 Exercises with Solution ]
- Python NumPy Linear Algebra [ 19 Exercises with Solution ]
- Python NumPy Random [ 16 Exercises with Solution ]
- Python NumPy Sorting and Searching [ 8 Exercises with Solution ]
- Python NumPy Mathematics [ 41 Exercises with Solution ]
- Python NumPy Statistics [ 14 Exercises with Solution ]
- Python NumPy DateTime [ 7 Exercises with Solution ]
- Python NumPy String [ 18 Exercises with Solution ]
- More to come

**Python Pandas :**

- Pandas Home
- Pandas Data Series [ 15 exercises with solution ]
- Pandas DataFrame [ 63 exercises with solution ]
- Pandas HR database Queries [ 24 exercises with solution ]
- Pandas Movies Data Analysis [ 17 exercises with solution ]
- Pandas Excel Data Analysis [ 25 exercises with solution ]
- Pandas Pivot Table [ 32 exercises with solution ]
- Pandas Datetime [ 25 exercises with solution ]
- Pandas Practice Set-1 [ 65 exercises with solution ]
- More to come

**Python BeautifulSoup :**

**Python Web Scraping :**

**Python Natural Language Toolkit :**

**Python Arrow Module :**

**Python GeoPy Package :**

**More...**

Note : Download Python from https://www.python.org/ftp/python/3.2/ and install in your system to execute the Python programs. You can read our Python Installation on Fedora Linux and Windows 7, if you are unfamiliar to Python installation.

You may accomplish the same task (solution of the exercises) in various ways, therefore the ways described here are not the only ways to do stuff. Rather, it would be great, if this helps you anyway to choose your own methods.

**List of Exercises with Solutions :**

- HTML CSS Exercises, Practice, Solution
- JavaScript Exercises, Practice, Solution
- jQuery Exercises, Practice, Solution
- jQuery-UI Exercises, Practice, Solution
- CoffeeScript Exercises, Practice, Solution
- Twitter Bootstrap Exercises, Practice, Solution
- C Programming Exercises, Practice, Solution
- C# Sharp Programming Exercises, Practice, Solution
- PHP Exercises, Practice, Solution
- Python Exercises, Practice, Solution
- R Programming Exercises, Practice, Solution
- Java Exercises, Practice, Solution
- SQL Exercises, Practice, Solution
- MySQL Exercises, Practice, Solution
- PostgreSQL Exercises, Practice, Solution
- SQLite Exercises, Practice, Solution
- MongoDB Exercises, Practice, Solution
- Euler Project

## Popularity of Programming Language

Worldwide, November 2019 compared to a year ago:

Rank | Change | Language | Share | Trend |
---|---|---|---|---|

1 | Python | 29.62 % | +4.2 % | |

2 | Java | 19.52 % | -2.2 % | |

3 | Javascript | 8.43 % | +0.2 % | |

4 | C# | 7.27% | -0.4 % | |

5 | PHP | 6.39 % | -1.0 % | |

6 | C/C++ | 5.89 % | -0.3 % | |

7 | R | 3.76 % | -0.2 % | |

8 | Objective-C | 2.55% | -0.7 % | |

9 | Swift | 2.44 % | -0.2 % | |

10 | TypeScript | 1.85 % | -0.3 % | |

11 | Matlab | 1.82 % | -0.2 % | |

12 | Kotlin | 1.63 % | +0.5 % | |

13 | VBA | 1.41 % | -0.1 % | |

14 | Ruby | 1.39 % | -0.2 % | |

15 | Go | 1.24 % | +0.3 % | |

16 | Scala | 1.14 % | -0.1 % | |

17 | Visual Basic | 0.98 % | -0.2 % | |

18 | Rust | 0.62 % | +0.2 % | |

19 | Perl | 0.55 % | -0.1 % | |

20 | Dart | 0.37 % | +0.2 % | |

21 | Lua | 0.34 % | -0.0 % | |

22 | Haskell | 0.3 % | +0.0 % | |

23 | Julia | 0.26 % | +0.0 % | |

24 | Delphi | 0.24 % | -0.0 % |

Source : http://pypl.github.io/PYPL.html

**TIOBE Index for November 2019**

Nov 2019 | Nov 2018 | Change | Programming Language | Ratings | Change |
---|---|---|---|---|---|

1 | 1 | Java | 16.246% | -0.50% | |

2 | 2 | C | 16.037% | +1.64% | |

3 | 4 | Python | 9.842% | +2.16% | |

4 | 3 | C++ | 5.605% | -2.68% | |

5 | 6 | C# | 4.316% | +0.36% | |

6 | 5 | Visual Basic .NET | 4.229% | -2.26% | |

7 | 7 | JavaScript | 1.929% | -0.73% | |

8 | 8 | PHP | 1.720% | -0.66% | |

9 | 9 | SQL | 1.690% | -0.15% | |

10 | 12 | Swift | 1.653% | +0.20% | |

11 | 16 | Ruby | 1.261% | +0.17% | |

12 | 11 | Objective-C | 1.195% | -0.28% | |

13 | 13 | Delphi/Object Pascal | 1.142% | -0.28% | |

14 | 25 | Groovy | 1.099% | +0.50% | |

15 | 15 | Assembly language | 1.022% | -0.09% | |

16 | 14 | R | 0.980% | -0.43% | |

17 | 20 | Visual Basic | 0.957% | +0.10% | |

18 | 23 | D | 0.927% | +0.25% | |

19 | 17 | MATLAB | 0.890% | -0.14% | |

20 | 10 | Go | 0.853% | -0.64% |

Source : https://www.tiobe.com/tiobe-index/

[ Want to contribute to Python exercises? Send your code (attached with a .zip file) to us at w3resource[at]yahoo[dot]com. Please avoid copyrighted materials.]

Inviting useful, relevant, well-written and unique guest posts

**New Content published on w3resource :**- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- React - JavaScript Library
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework