The Wayback Machine - https://web.archive.org/web/20240620053745/https://www.geeksforgeeks.org/what-can-i-do-with-python/
Open In App

What Can I Do With Python?

Last Updated : 02 Nov, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python’s design philosophy emphasizes code readability with its notable use of significant whitespace. 

Let’s see what Python programming does:

Uses of Python

In terms of usability, Python is limitless. It can be used for web development machine learning, and data science and can also be used for writing scripts for automating daily life tasks like sending email, desktop notifications, and more. Let’s see some of the uses of Python.

  • Web Development
  • Data Science and Machine learning
  • Game Development
  • Desktop Application Development
  • Systems Level operations
  • Data Mining
  • Webscraping
  • Blockchain
  • Hacking
  • Software Testing
  • Develop Embedded Systems and Robots

How is Python used in Web Development?

  1. Django And Flask are 2 Python-based popular web frameworks that are used to create backend code.
  2. Django is an in-demand skill and as it is based on Python the knowledge in Python language enables quick learning of the framework and its application.
  3. Python can be used to build server-side web applications. While a web framework is not required to build web apps, it’s rare that developers would not use existing open-source libraries to speed up their progress in getting their applications working.

How is Python used in Data Science, Machine Learning?

  1. Machine Learning And Data Science have great advantages when used with python this is because of the extensive libraries built in python.
  2. Python is known for using large data and also has its large libraries including Numpy, Pandas which help in data science and also TensorFlow and Pytorch that have made matrix computations faster and providing a boost in the Data Science world. 
     

How is Python used in Game Development?

  1. Pygame, Python can be used to code a variety of arcade games, adventure games, and puzzle games that you can deploy within a few days. Classics like hangman, tic-tac-toe, ping-pong, and more are all doable with your newly acquired programming skills.
  2. Pygame library makes it even easier to build your own games. It contains almost anything you could need when starting to develop a game.
  3. Pygame is a free and open-source. It includes computer graphics and sound libraries that you can use to add interactive functionality to your application.

How is Python used in Desktop Application Development?

Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI applications. Tkinter provides a powerful object-oriented interface to the Tk GUI toolkit.
Python provides various options for developing graphical user interfaces (GUIs). Most important are listed below. 

  1. Tkinter
  2. Wxpython
  3. JPython

How is Python used in performing Systems Level operations?

The OS module in Python provides functions for interacting with the operating system. OS comes under Python’s standard utility modules. This module provides a portable way of using operating system dependent functionality. The *os* and *os.path* modules include many functions to interact with the file system.

How is Python used in Data Mining?

  • Classification:
    Classification (a type of supervised learning) helps to identify to which set of categories an observation belongs based on the training data set that contains the observations. The most common Python library used for classification is Scikit-Learn. 
     
  • Clustering:
    Clustering means grouping a set of objects such that the objects in one cluster are more or less similar to each other than ones in the other clusters. Unlike classification, this type of data analysis is a type of unsupervised learning. One of the most popular clustering techniques is K-Means. 
     
  • Linear Regression 
    Linear Regression is a type of supervised learning algorithm that will predict the value of a dependent variable (a) based on an independent variable (b). The algorithm calculates the linear relationship between the input and output variables and plots a straight line on the graph.

How is Python used in Web Scraping?

  • Scraping means to scrape content from the website.
  • For scraping purposes, python has Beautifulsoup( as a bs4), requests popular libraries.
  • Python has a complete framework for Web Scraping: Scrapy.

How is Python used in BlockChain?

  • Blockchain was initially developed as financial technology, it’s spreading to a variety of other industries as well. Blockchain can be used for almost any kind of transaction like real estate dealings, medical record transfers, etc.
  • In Python, we can use flask, requests, hashlib, JSON library together to implement a blockchain algorithm and then use it.

How is Python used in Hacking?

Being able to gain access to a system that you’re not supposed to have access to is known as Hacking. Python is a very simple language yet powerful scripting language, it’s open-source and object-oriented and it has great libraries that can be used for both for hacking and for writing very useful normal programs other than hacking programs.

DevOps Using Python

DevOps is a set of practices that combines software development (Dev) and IT operations (Ops) with the aim of automating and shortening the systems development life cycle while delivering features, fixes, and updates frequently. Python plays a significant role in DevOps due to its versatility, extensive libraries, and simplicity.

Tools Required:

Software Testing Using Python

Software testing using Python involves the use of Python programming language and various testing frameworks and libraries to assess the quality and functionality of software applications. Python is a versatile language for automating and conducting tests, ranging from unit tests to end-to-end testing.

Tools Required:

Develop Embedded Systems and Robots using Python

Developing embedded systems and robots using Python has become increasingly popular due to Python’s ease of use and versatility. Python is not a traditional choice for embedded systems due to its interpreted nature, but with the right tools and libraries, you can use it effectively.

Tools Required:

  • BBC micro:bit
  • CircuitPython
  • MicroPython
  • PythonRobotics

Disadvantages of Python

Like any other language, Python is also not perfect and have some disadvantages. Some of the disadvantages are – 

  • Python is slower than other programming languages like C/C++ and is not closer to hardware like C/C++
  • It is not a very good language for mobile development
  • For any memory-intensive tasks Python is not a good choice. That is why it is not used for that purpose. Python’s memory consumption is also high, due to the flexibility of the data types.


Similar Reads

JavaScript vs Python : Can Python Overtop JavaScript by 2020?
This is the Clash of the Titans!! And no...I am not talking about the Hollywood movie (don’t bother watching it...it's horrible!). I am talking about JavaScript and Python, two of the most popular programming languages in existence today. JavaScript is currently the most commonly used programming language (and has been for quite some time!) but now
5 min read
String slicing in Python to check if a string can become empty by recursive deletion
Given a string “str” and another string “sub_str”. We are allowed to delete “sub_str” from “str” any number of times. It is also given that the “sub_str” appears only once at a time. The task is to find if “str” can become empty by removing “sub_str” again and again. Examples: Input : str = "GEEGEEKSKS", sub_str = "GEEKS" Output : Yes Explanation :
2 min read
Python dictionary, set and counter to check if frequencies can become same
Given a string which contains lower alphabetic characters, we need to remove at most one character from this string in such a way that frequency of each distinct character becomes same in the string. Examples: Input : str = “xyyz” Output : Yes We can remove character ’y’ from above string to make the frequency of each character same. Input : str =
2 min read
Python | Check if given string can be formed by concatenating string elements of list
Given a string 'str' and a list of string elements, write a Python program to check whether given string can be formed by concatenating the string elements of list or not. Examples: Input : str = 'python' lst = ['co', 'de', 'py', 'ks', 'on'] Output : False Input : str = 'geeks' lst = ['for', 'ge', 'abc', 'ks', 'e', 'xyz'] Output : True Approach #1
5 min read
Python VLC MediaPlayer - Checking if it can be paused
In this article we will see how we can check if video is pausable in the MediaPlayer object in the python vlc module. VLC media player is a free and open-source portable cross-platform media player software and streaming media server developed by the VideoLAN project. MediPlyer object is the basic object in vlc module for playing the video. We can
2 min read
Python - Check whether the extracted element from each row of matrix can be in ascending order
Given a matrix, the task here is to first select an element from each row in such a manner that when taken in exact order they can potentially form a sorted list or a list in ascending order. If it is possible return True else False. Input : test_list = [[3, 4, 6, 2], [3, 4, 9, 1], [8, 5, 4, 7], [9, 1, 2, 3]] Output : True Explanation : [2, 3, 4, 9
6 min read
Python Program to check if two sentences can be made the same by rearranging the words
Given two strings S1 and S2 representing two sentences, the task is to check if two sentences can be made same by rearranging the words of any of the strings. Examples: Input: S1 = "please select a category", S2 = "category a please select"Output: Yes Input: S1 = "hello world this is python language", S2 = "python language is this modern world" Out
5 min read
How we can iterate through list of tuples in Python
In this article, we will discuss different ways to iterate the list of tuples in Python. It can be done in these ways: Using Loop.Using enumerate().Method 1: Using Loop Here we are going to form a list of tuples using for loop. C/C++ Code # create a list of tuples with student # details name = [('sravan',7058,98.45), ('ojaswi',7059,90.67), ('bobby'
2 min read
How can to get list of values from dictionary in Python?
In this article, we will discuss how to get a list of values from a dictionary using Python. Get list of values from dictionary using values() function We can use a dictionary.values() along with the list() function to get the list. Here, the values() method is a dictionary method used to access the values from the key: value pairs and we are then
3 min read
Return True if Cast Between Data Types can Occur According to the Casting rule in Python
In this article, we will see that if the program returns True if the case between different data types can occur according to the casting rule of Python. Casting Rules in Python In Python, the term "casting" refers to the method of converting one datatype into another. In Python, there are certain built-in data types amongst which we can cast, they
5 min read
Article Tags :
Practice Tags :