r/C_Programming • u/Aishwariyaa_K • Jun 20 '26
Question Help me!!
I learnt python in grade 11 & 12
Looking to learn C before college
My questions are:
- How long does it take
- Will learning python will give me any heads up in C?
- Best resources (free/paid) + certi
Thanks in advance.
0
Upvotes
2
u/Feisty_War80 Jun 20 '26 edited Jun 20 '26
I was in the same boat as you a month ago, just finished 12th (I'm assuming you were in CBSE, and took Computer Science), so knew Python. Started learning C around 25-30 days ago. About to finish it in a day or two.
For example, in Python, to declare a variable, you'll have to go like this:
var=int(input("Enter a variable: "))
In C, you'll have to do this:
#include <stdio.h>
int main(){
int var;
printf("Enter a value: ");
scanf("%d", &var);
return 0;
}
(for anyone reading this, if it isn't indented properly, I apologize. Im not able to edit it properly.)
So yea, knowing Python is a good thing, you'll be able to grasp things easily. (You might/will struggle with a few concepts, like how I did, you can check my rant about that in the same sub, posted like 20 hours ago ðŸ˜)
3. I'm currently enrolled in a course. I can share it with you if you can understand Tamil properly (Tamil teachers). They have an entire website like leetcode with a large number of questions (around 3500 questions for C alone), and yes, you are provided with a certificate, provided you have completed a certain number of questions (I think 25).
Hope this helps
1
u/rias_dx Jun 20 '26
how good do you want to be?
I'd recommend C first.
K&R
1
u/silvertank00 Jun 20 '26
Additional intel: C and python by default are connected, it is called Cython. In spite of this, I'd wager about 90% of devs do not have any advantage because of this. If you want to be heavily performant then you might have to make c modules with python bindinds but this is rare. (in my career I only done it twice maybe?)
Other than this, if you dont get yourself to be higer level in python (which would take years itself) then python would not give you much help for C; at least in perspective of syntax and "way to achieve things". The two languages are VERY different with VERY differing way to do things. But additional programming experiance is always nice and python is a good way to get that. So yes, If I were you I would use python to do things first, then repeat in c.
In python you will see inherited things from C. I.e. see dunders.
1
u/pjl1967 Jun 20 '26
It entirely depends on you. If you're a quick-learner, quickly; if not, then longer (or never).
Learning any programming language beforehand will help because you'll presumably already understand fundamental concepts of programming like what variables and functions are.
Why Learn C. (Also available on Amazon and elsewhere including major public or university libraries.)
In the future, please use better (specific) post subjects, e.g., "Learning C from Python, and resources." I normally ignore meaningless subjects like "Help me!!" (especially if it has exclamation points). If someone can't be bothered to write a well-worded question, I generally can't be bothered to read much less answer it.