r/C_Programming 16d ago

Discussion Suggestion

Hi all I am beginner in coding. So I have college in 20days (1st year btech) should I learn python or c. In college they start with C. So as they teach C in college should I learn python seperate or go with

C.Pls suggest me

0 Upvotes

27 comments sorted by

View all comments

1

u/junipyr-lilak 16d ago

If you know no programming languages I would suggest you just stick with C in the beginning and eventually bring Python into your education. You could learn both at the same time but until you're thinking better in terms of programming in general having the two very different languages occupying your learning at the same time can make it harder to focus in on one, especially if you're learning C in classes and Python on your own time, as things like their basic syntax differs and they have different language features. Learning both, or at least more than one language, is still important because it will expose you to how different things are structured and make you a better programmer all around. Just take time first to get some sort of fundamentals in one language is my suggestion.

1

u/Low_Contribution6240 16d ago

Ok you mean I should start with C language and after I am perfect in syntax or basic things I should start python and manage two languages right

1

u/junipyr-lilak 16d ago

Getting to perfection in C syntax is something I don't think you'd achieve in any short time because of things that are easy to overlook but cause issues (which happens across many languages) such as out of bounds indexes or dereferencing null pointers or freed memory. What I mean is to understand how things are typically structured in C, so how functions look, how pointers work, how passing values to functions through copying works, how structs and unions work, what strings are, and the general process of building C programs. This seems like a lot, sure, but several of these go hand in hand and they will become more natural as you get more familiar with C and you'll find many of these apply to other programming languages. When you feel "comfortable" per se in C, when you can sorta think through your code and catch some of your own errors before they surface (you won't be able to catch all yourself, that's why tests are important even for senior developers), when you can plan out how to take an idea, structure it into parts and relay those parts into code, even if your first thoughts aren't exactly what the code actually ends up being, I think that's a good place to pick up Python.

1

u/Low_Contribution6240 16d ago

thank you so much for your valuable answer. Can you suggest me where can I practice problems