w3resource
Python Exercises

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 NumPy :

Python Pandas :

Python Web Scraping :

Python Challenges :

Python Mini Projects :

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 :

Popularity of Programming Language
Worldwide, Oct 2018 compared to a year ago:

Rank Change Language Share Trend
1 up arrow Python 24.72 % +5.4%
2 down arrow Java 22.01 % -0.7 %
3 up arrow Javascript 8.4% +0.1 %
4 up arrow C# 7.71 % -1.4 %
5 down arrow PHP 7.42 % -1.6 %
6 C/C++ 6.32 % -0.5 %
7 R 4.11 % -0.1 %
8 Objective-C 3.29% -0.9 %
9 Swift 2.69 % -0.8%
10 Matlab 2.08 % -0.3 %
11 Ruby 1.63 % -0.4 %
12 up arrow TypeScript 1.54 % +0.1 %
13 down arrow VBA 1.48% -0.0 %
14 Scala 1.22% -0.2 %
15 Visual Basic 1.14 % -0.2 %
16 up arrow Kotlin 1.04 % +0.3 %
17 up arrow Go 0.96 % +0.3 %
18 down arrow Perl 0.65 % -0.2 %
19 lua 0.39 % +0.0 %
20 up arrow Rust 0.38 % +0.0 %
21 up arrow Haskell 0.31 % -0.0 %
22 down arrow Delphi 0.27% +0.1 %

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

TIOBE Index for October 2018

Oct 2018 Oct 2017 Change Programming Language Ratings Change
1 1 Java 17.801% +5.37%
2 2 C 15.376% +7.00%
3 3 C++ 7.593% +2.59%
4 5 up arrow Python 7.394% +1.83%
5 8 up arrow Visual Basic .NET 5.884% +3.15%
6 4 down arrow C# 3.485% -0.37%
7 7 PHP 2.794% +0.00%
8 6 down arrow JavaScript 2.280% -0.73
9 - up arrow SQL 2.038% +2.04%
10 16 up arrow Swift 1.500% -0.17%
11 13 up arrow MATLAB 1.317% -0.56%
12 20 up arrow Go 1.253% -0.10%
13 9 down arrow Assembly language 1.245% -1.13%
14 15 up arrow R 1.214% -0.47%
15 17 up arrow Objective-C 1.202% -0.31%
16 12 down arrow Perl 1.168% -0.80%
17 11 down arrow Delphi/Object Pascal 1.154% -1.03%
18 10 down arrow Ruby 1.108% -1.22%
19 19 PL/SQL 0.779% -0.63%
20 18 down arrow Visual Basic 0.652% -0.77%

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.]