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, Feb 2019 compared to a year ago:

Rank Change Language Share Trend
1 up arrow Python 26.42 % +5.2%
2 down arrow Java 21.2 % -1.3 %
3 up arrow Javascript 8.21% -0.3 %
4 up arrow C# 7.57 % -0.5 %
5 down arrow PHP 7.34 % -1.2 %
6 C/C++ 6.23 % -0.3 %
7 R 4.13 % -0.1 %
8 Objective-C 3.04% -0.8 %
9 Swift 2.56 % -0.6%
10 Matlab 1.98 % -0.4 %
11 up arrow TypeScript 1.61 % +0.2 %
12 down arrow Ruby 1.54 % -0.2 %
13 down arrow VBA 1.44% -0.0 %
14 up arrow Scala 1.17% -0.1 %
15 up arrow Kotlin 1.15 % +0.3 %
16 down arrow Visual Basic 1.15 % -0.1 %
17 up arrow Go 1.05 % +0.3 %
18 down arrow Perl 0.58 % -0.2 %
19 Rust 0.43 % +0.1 %
20 Lua 0.35 % +0.0 %
21 up arrow Julia 0.3% +0.1 %
22 up arrow Haskell 0.3% +0.0 %
23 down arrow Delphi 0.25% -0.1 %

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

TIOBE Index for February 2019

Feb 2019 Feb 2018 Change Programming Language Ratings Change
1 1 Java 15.876% +0.89%
2 2 C 12.424% +0.57%
3 4 up arrow Python 7.574% +2.41%
4 3 down arrow C++ 7.444% +1.72%
5 6 up arrow Visual Basic .NET 7.095% +3.02%
6 8 up arrow JavaScript 2.848% -0.32%
7 5 down arrow C# 2.846% -1.61%
8 7 down arrow PHP 2.271% -1.15
9 11 up arrow SQL 1.900% -0.46%
10 20 up arrow Objective-C 1.447% +0.32%
11 15 up arrow Assembly language 1.377% -0.46%
12 19 up arrow MATLAB 1.196% -0.03%
13 17 up arrow Perl 1.102% -0.66%
14 9 down arrow Delphi/Object Pascal 1.066% -1.52%
15 13 down arrow R 1.043% -1.04%
16 10 down arrow Ruby 1.037% -1.50%
17 12 down arrow Visual Basic 0.991% -1.19%
18 18 Go 0.960% -0.46%
19 49 up arrow Groovy 0.936% +0.75%
20 16 down arrow Swift 0.918% -0.88%

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



New Content: Composer: Dependency manager for PHP, R Programming