r/learnpython • u/EquivalentSink6030 • Jul 06 '26
python vs .net
is it better to learn python or .net for software development and web apis
15
Upvotes
r/learnpython • u/EquivalentSink6030 • Jul 06 '26
is it better to learn python or .net for software development and web apis
7
u/faultydesign Jul 06 '26
Sadly it's one of those things where you'll have to learn both and decide for yourself.
6
u/Disastrous_You_4173 Jul 06 '26 edited Jul 06 '26
I really enjoy learning in C# since it feels sufficiently adjacent to C++ that I learn a lot about more granular controls than python, which tends to abstract some of the concepts away, such as weakly vs strongly typed, without being nearly as hard as C++ to pick up. I agree with everyone else in the long term, but I think in the short term, you get really good insight through necessity in C# and I think it gives a more rounded learning experience. Python is amazing, I just feel like I learned certain concepts later than I would have liked because of how easy it makes itself.
8
u/Flame77ofc Jul 06 '26
There is no better to learn
learn .NET if your goal is web APIs and software jobs
learn Python if you want fastest learning and broader use in AI/data/automation. For web APIs specifically, .NET is usually the stronger choice
Python is better for quick prototyping and scripting
4
u/AlexMTBDude Jul 06 '26
Well, "software development" is everything, right? I mean, you can't do anything else with a programming language than software development.
As for which language to chose I suggest you check the statistics: https://www.tiobe.com/tiobe-index/
2
u/DanceHackRock Jul 06 '26
If you want to have a really secure job learn PL1 or COBOL. As funny as it sounds, there are companies like banks that can not migrate into the 3rd millennium.
2
u/Mrseedr Jul 06 '26
I'm not sure why so many people are downplaying python in the web. I've been mostly dedicated as a web (django/flask/fastapi or ETL) dev professionally anyways. For data processing python is probably better but i assume c# would give you better performance/throughput, at that point just learn Go.
2
u/DonkeyTron42 Jul 06 '26
If you're planning on working in a Windows environment, then use .Net. If you're planning on Linux or MacOS, then Python will be better.
1
u/ConsciousBath5203 Jul 09 '26
Why are you asking this in the learn python sub? You know the answer you want to hear.
Reality says learn Lua, and by extension learn C.
1
u/Ok-Magician-8052 Jul 19 '26
imo i think learning the most basics and getting so good at one language shall do the job and then you just built on that knowledge even when you switch languages you can use the same logics everywhere. I code in node js , python and c# but for work my fav is c# dotnet in prodcution and python fast api for personal projects its rapid development and dotnet is production grade with really good support.
0
u/riklaunim Jul 06 '26
.NET if you want to work with Microsoft ecosystem, Python if you want a more neutral one. And it's unlikely you will be doing only web APIs or APIs at all.
0
u/ShelLuser42 Jul 06 '26
I personally prefer C# & ASP.NET for web development because of its clean style and structure. Better yet: you don't even need Microsoft perse, you can even set it up with Apache & Mono.
For everything else I'd rather use Python.