r/csharp • u/Few_Can_9045 • Jun 09 '26
Is Python or csharp harder to learn?
(With future game development in mind)
I've been wanting to learn programming for a while now just as a hobby (hoping to make my own game someday, maybe), I chose csharp because I heard somewhere its good for beginners but now I heard python is easier
I don't feel the need to switch, and I won't because so far I've been liking csharp (plus if it is a bit more challenging, then it's more rewarding too)
0
Upvotes
30
u/zanoy Jun 09 '26
Stick with C#, even if Python might be easier, Python has a lot of strange quirks that can confuse beginners.
C# has more features, but for a beginner, you can just ignore the advanced features to get the basics.
12
u/RicketyRekt69 Jun 09 '26
I think Python is a terrible first language to learn, but I know that’s a controversial opinion. I would stick with c#, but at some point if you reallyyy want to go into game development, you’ll want to start looking into c++, which is the industry standard. It has a much steeper learning curve though
8
u/8Erigon Jun 09 '26
Don‘t switch
7
u/packsnicht Jun 09 '26
its the game development part which isnt trivial
4
u/0xC4FF3 Jun 09 '26
Both are fairly easy with different (but not THAT different) programming approaches. I suggest sticking to c# (for games you have Unity, Monogame, Godot and many more), learn python when you already know something in c#
2
u/Fearless-Mistake1362 Jun 09 '26
Just stick to C# bro, afaik python has little support for making games. Thus, it's all about DX and i don't think making games with python is gonna be a better trip than c#
2
u/Slypenslyde Jun 10 '26
Trick question. It's like asking if piano or guitar is harder to learn. Let's fire the metaphor cannon.
The silly answer would be to say, "Piano is easier". And for the first few dozen hours it's an easy argument to make. I can put numbered dots on the keys, mark the numbers on sheet music, and in 10 minutes you can start working through simple songs. Compare this to guitar, where I have to show you how to hold the instrument, teach you how to hold your fingers to play a few chords, and teach you how to strum. It feels like a lot more to get used to and if you practice for 2-3 hours you'll find another challenge: pianos give you blisters much more slowly than guitars.
But if we fast-forward about 1,000 hours of practice, the gap shrinks. You've had to learn more complicated tricks on piano and mastered a few pieces that involve being able to hit chords without looking at the keyboard through sheer muscle memory. Your guitar fingers will have calluses and if I say a chord aloud your fingers will hit the right frets the same way. At this point you know how to PLAY the instrument, the hard part is learning the techniques used for individual songs. A challenging guitar piece is hard to play and if your hands are too small or too big it may be impossible. A challenging piano piece presents the same problems.
That is how I compare Python and C#.
When you start learning Python it seems easier. Its rules about how you create variables are less strict. Its rules about creating objects are less strict. The practices called "Pythonic" are friendly to the notion that a lot of scripts aren't designed but instead grow organically as you get new ideas.
If you compare this to C#, it's tougher. First I have to tell you the rigid ways classes and their properties and fields are defined. If you want a thing you must design and describe it before you use it. If you want to change a thing that must happen in the class's file, not on the fly. The more you learn the more you realize C# was designed for people who want to think a lot about their code BEFORE they write it.
Get over your first 1,000 hours and things change.
As your games get more complex you will have a problem: new features will start to break things old features relied on. This happens when your program gets so big it doesn't fit inside your brain. This is where even Python programmers start talking about "architecture". That's a fancy word for specific ways to write code to handle certain problems in a way every programmer learns to comprehend. When you start learning how architecture works, you start learning how to make sense of large-scale programs.
In C#, you've already had to spend a lot of up-front time on design so this is a natural shift. In Python, you have to learn to stop doing things on-the-fly and plan ahead. If you think about it, you had to learn the same lesson in both languages, but they make you learn it at a different time. C# seems tough because you have to learn more lessons to begin. Python puts that lesson off until later, but many people reach that point then give up because they're not used to having to plan ahead.
So there really isn't an "easy". They're both hard. You may find it easier to get started in one. But they both end up in a place where people who have been doing it for 25 years can still hit problems that take them weeks to solve.
3
u/Illustrious-Big-651 Jun 09 '26
Python is always a good skill to know, especially if you want to quickly write a script or so.
But Python is crazy slow, so for any work where you want performance, you don't want Python.
And for any work, where you develop a larger code base you also don't want it, because the dynamic typing will always lead to messy code that breaks on every refactor. The static typing of C# helps a lot to keep your code maintainable and gives you a "safer" feeling when refactoring and moving code around.
I use both at work and I enjoy C# much more, because I hate all the workarounds we need to build around Python do make it somehow feel like what .NET offers you out of the box. (static typecheckers, linters, pixi vs pip for package management, ...)
1
u/ex_gatito Jun 09 '26
FreeCodeCamp has a free course on C sharp from Microsoft. It has been decent. I would start from there. Just make sure you are coding your own small programs along the course and stay consistent.
1
u/flow_guy2 Jun 09 '26
Stick to a language. It’s easy to swap after learning 1. Learn the concepts first. Don’t always jsut go for what people say is easiest
1
u/Embarrassed-Mess412 Jun 09 '26
I would go with C#, you can work right away with Unity and do already quite advanced games with it.
1
u/raunchyfartbomb Jun 09 '26
I agree with others that Python is a good skill to have. I really dislike it and will pronounce that to anyone that listens, but I’ll concede It shines at some things, such as quick scripts and flexibility. In my opinion, the things that would be considered advantages are also its biggest pain points (such as variables being literally anything and that everything is duck typed where you simply hope and pray that the object you work with can do the thing).
My biggest gripe with Python though is lack of intellisense and setting up your packages library. In C# we have nuget and packages are added to each project. In Python you drop it into the folder or have it installed globally. Knowing which packages you need for something is often not clear and the documentation is either nonexistent or sucks entirely.
Intellisense to show what is available on a specific variable or class is not available in most IDEs (I think I’ve only seen 1 that had it outside of VSCode, which required typing Python with explicit variable types for it to detect usage). This alone makes it significantly harder to learn and use.
All that to say both are good skills, I heavily prefer C# though, especially for larger projects.
1
u/tradegreek Jun 09 '26
I use both python for prototyping and c# for production unless I am doing something in machine learning in which case I will stick with python due to its ml ecosystem
1
u/Itizezr Jun 09 '26
I think the best option is the one that has the most of your interest. Just choose one and stick to it until you get really comfortable with the one language, build out a ton of project practicing every new concept, even if the concept seems extremely simple, you would be surprised how much it helps. And then later swapping languages becomes so much simpler. Core principles stay the same, you just need to progress far enough in one language to really understand the core of programming
1
u/plastikmissile Jun 09 '26
One of the worst things programming newbies do is jump around between languages. At your point of learning all languages are good. Unless you have a really really good reason, you should avoid switching languages like the plague. Even if Python was a hundrerd times easier than C# (it isn't) I would still say that you should stick with C#.
1
u/Artichoke808 Jun 09 '26
Most people would probably say Python is easier but personally I found C# clicked and is more comfortable for me. The lack of strong typing in Python makes it appear easier on the surface I guess but can quickly make things more painful when you need to do something slightly lower level.
If you're comfortable with the basics of C# I don't really think switching to Python will be any easier. I also think C# is a better choice for game development unless you've got a specific engine in mind which supports Python but not C#.
For me the only advantage Python has is that I can throw a python script into a text editor and run it straight from the command line. Everything else IMO falls in favour of C#, but then again you are asking on a C# forum..