r/learnpython • • Jan 11 '25

What are some good use cases of python?

Hello. I started learning python a bit ago as an introductory language to get a job when I’m older. I’m curious as to what are some good use cases of it/what you can program with it?

1 Upvotes

26 comments sorted by

10

u/NefariousnessNo2897 Jan 11 '25

The limit is your imagination. If it can be done with a computer it can be done with Python. Find something that you do on the computer already and see if you can do it (bonus points for doing it better) with Python.

1

u/inarchetype Jan 11 '25

If it can be done with a computer it can be done with Python.  

Albeit slowly.

-6

u/nog642 Jan 11 '25

Mostly. Some compute limited things are not feasible. You're not going to make a high quality 3D game engine in Python.

You also can't really make a website without also learning HTML/CSS/JS, for example.

6

u/lordfwahfnah Jan 11 '25

Streamlit begs to differ

3

u/3rdtryatremembering Jan 11 '25

“Nothing. You can’t make anything without also using a keyboard”

0

u/nog642 Jan 11 '25

I assume OP knows how to use a keyboard, but very likely doesn't know JavaScript.

1

u/Infinite-Bet6546 Jan 11 '25

Thanks for the responses everybody!

4

u/dwe_jsy Jan 11 '25 edited Jan 11 '25

APIs, full stack web apps, scripting system tasks, automation of tasks, data analysis, the standard language for a lot of AI abstraction and libraries, GUI apps, CLI apps, education, micro Python for micro controllers and IoT…

First language I clicked with to start to learn abstract concepts in programming and opened the door to me becoming a technical product manager then leading a team of engineers. It may leave you wanting to dig under the hood and go lower level. Lack of true typing can become annoying but efforts in place to improve that but also Python has greatly expanded my understanding and ability to go lower level like Go or C with additional resources such as language specific books and CS knowledge

2

u/ippy98gotdeleted Jan 11 '25

Depends what you want to do really. For work I make web apps and network automation. Home I do some web apps and web scraping, and automated some other tasks like grabbing weather or sports info. Arduino boards can be programmed with python to make gadgets and other IoT type devices. Really endless depending on your interests

2

u/candyman_forever Jan 11 '25

As you are starting to learn python as your first language you need to understand that software engineering is about stacks. What I mean by this is that you will need to learn other things too. Let's take, launching a website. For this you will need;

  1. Python for the backend

  2. Html, CSS and JavaScript for the front end

  3. SQL for database interactions

Then to deploy:

  1. Ngnix or Apache for the reverse proxy

  2. Linux to understand bash

More advanced:

  1. Docker

  2. Cloud

However the first thing you need to understand is the fundamentals of coding. Learn the language and the best way to do this through projects. You can then decide on an area you like. Let's say machine learning or website development. Then learn more about that.

1

u/cgoldberg Jan 11 '25

It's a general purpose language and can be used in nearly any use case imagineable. It is better suited for certain tasks, but there are too many areas it is used in to list here.

1

u/Immediate-Kale6461 Jan 11 '25

I am not sure of anything it is bad for. I wouldn’t use it for anything huge but people will certainly disagree with that…

1

u/ebits21 Jan 11 '25

I would say it’s bad for performance critical things, and maybe a pain for wide distribution.

But those things are not always critical.

1

u/typehinting Jan 11 '25

It can do just about anything. Maybe with the exception of like, client-side code running in your web browser (although I'm sure people have found ways). Other languages may be better suited for some things, and perhaps be more performant, but as others have said, the limit really is your imagination. Try making (almost) anything!

1

u/TheRNGuy Jan 11 '25

I learned it specifically for SideFx Houdini.

1

u/Stubber_NK Jan 11 '25

In a previous job I used it interface with a suite of equipment used for testing microelectronic devices.

I was able to automate a fairly intricate process of various tests to the point where all I had to do was plug the device into its socket, press go on the computer, and in 20 minutes it beeped at me to let me know it was finished.

1

u/tradegreek Jan 11 '25

I use it exclusively for prototyping now and other than a few scripts have upgraded them to c# as it offers better safety / performance.

But python is a great language to learn to get into programming, build programs quickly parsing a csv file is literally two lines of code one being an import lol. Significantly less verbose than other languages it’s a joy to work with.

Not to mention it’s very popular and in demand by employers

1

u/clipd_dead_stop_fall Jan 11 '25

I came from an earlier more traditional full stack engineering background, so my knowledge started with Javascript front ends and C# APIs. I moved to a cybersecurity role, so I switched to Python for faster scripting, better container support for what we do with our automation, and to be able to understand what our Data Science and Data Engineering teams are doing.

1

u/sbprintz Jan 11 '25

I’ve used it to build web apps, discord bots, Plex automation, home automation, desktop apps (pysimplegui), scrapers, diabetes blood sugar monitoring app.

Sky is the limit, just get coding!

Some of the web apps, www.emptythreats.co.uk, www.thesweetlifeoftash.co.uk, www.bingebuddy.co.uk

1

u/ninhaomah Jan 12 '25

Pls turn the question around.

What do you want to do/achieve by learning Python or general programming ?

What kind of project / job ?

1

u/Mikx_vr Jun 14 '25 edited Jun 14 '25

Dumbest answers to questions I have ever seen. You ask what are some good uses and people go on a tangent, and give superficial answers.

It's like no one can give a simple example of what python can do. This is a huge deterrence in the tech community when it comes to getting started with using a programming language.

There are lot of things you can program with Python. You can automate tasks, bring functionality to web pages and also machine learning.

The best visual of this for a desktop app would be this video here, https://youtu.be/4TODW-IP4XM?si=MwOuT1uJBer5dd2W (By the way she did not use Python but another programming language called Java script. but also raw HTML and CSS files.) But like Java script, python is like the gears of a watch. While HTML and CSS is like the structure and aesthetic of the watch itself.

This women decided to code an egg timer from scratch. She wanted to know when her egg would be finished. So aside from drawing the eggs she also created and developed an app to help her.

Obviously things get more complicated depending on the field you're in, but an open source like python has a plethora of libraries and modules that you can always look into.

So for cyber security, you may need code in order to automate tasks. Like "if an unknown IP address accesses my jobs network," I want to be notified.

You can send auto emails, set daily reminders.

You can do things like:

Turn on your LED lights from your pc
Create websites

So all in all there are a ton of things you can do. Getting into it is difficult because people don't understand what you it can do

They give general and superficial responses because they are clueless themselves.

As you get more involved you can look at other people's code on different websites to see what they have made.

-1

u/PassionPrestigious79 Jan 11 '25

Hi,

LLMs are so popular right now, and there are many good guides out there.

I started with basic descriptive statistics, cleaning data, and using it for basic analytics. I set a goal of writing a bit of code every day.

If you have zero experience, check out DataCamp.

Good luck!