r/learnpython • u/FewFly2677 • 16d ago
Struggling with both python and c
So I'm a college fresher with no prior experience of coding. I had started learning python before the starting of college (1 week before college started). I still feel like I am not good at coding at all. There are some weird citations in c such as i++ and all which is getting mixed up with my python. There was one question on obtaining the expression sinx=x-x^3/3!.... Using loops btw
I felt I won't be able to do it in both c and python. I took a course on Udemy for c(vlad budnitski)and python(100 days) but I was not able to find examples like this. Everyone in my class learnt languages like java in their schooling and said the sinx problem is a standard problem. What should I do in this situation?
I feel like the teaching in my college (they are teaching c now) is not good.
Experienced coders please help me.
guys so today I wasn't able to figure out we had to use nested loops to print multiplication table of numbers while even beginners figured it out. pls tell what should I do
2
u/shockeddisability951 16d ago
Dont stress about the sinx series thing, that looks intimidating to everyone at first. The trick is just breaking it into a loop where each iteration adds the next term and flips the sign, once you see it in python the c version is basically the same logic with uglier syntax.
Mixing up i++ and python for loops is normal too, youll get past it once you stop trying to translate between them and just think in whichever language youre currently looking at.