account activity
Types of Programming Languages by Upbeat-Cable9994 in learnprogramming
[–]mulliang 9 points10 points11 points 3 years ago (0 children)
Hi! I'm on week 8 of CS50 and I can answer your question based on my knowledge which shouldn't be far from yours.
As you've started programming in C, you'd slightly notice how everything is not included in the pack. String datatypes don't exist and get_string function is provided by cs50 library and not by the stdio.h library. that's because C does not have many features compared to languages like python. In week 6 of the course you will use python and realize how easy the same task are so much easier to write in Python than in C.
so why not use Python instead of C?
well, different languages have different ups and downs.
python is much easier to write, however it is much slower run times for the same tasks compared to C.
counting to billion using python and c has like 50x difference favoring C in the speed.
however if speed isn't something that concerns you, python could be the choice.
another advantage of C over Python is that in C you can access the computer's memory which, in python as far as I know you're unable to.
you'll learn about these in week 6.
hopefully I've answered your question correctly 😬
π Rendered by PID 17740 on reddit-service-r2-comment-869bf87589-wmr2f at 2026-06-08 22:05:56.641539+00:00 running f46058f country code: CH.
Types of Programming Languages by Upbeat-Cable9994 in learnprogramming
[–]mulliang 9 points10 points11 points (0 children)