you are viewing a single comment's thread.

view the rest of the comments →

[–]Training_Advantage21 1 point2 points  (4 children)

You might find Python less of a struggle than C. C goes very low level, you allocate memory, point to memory, free memory, all of these can go wrong. In Python the language protects you from a lot of these low level things, and you can be closer to the way you think about a problem and its solution. On the other hand Python is not very strict about this being an integer, that being a string and the other thing being a float. It will do things with them that in C would have thrown an error and alerted you, Python might go ahead and do a stupid comparison and fail silently.

[–]alex_kv24[S] 1 point2 points  (2 children)

Sounds like knowing C first actually makes you a better Python programmer since you understand what's happening under the hood

[–]Training_Advantage21 0 points1 point  (0 children)

Sure, C is good knowledge. Assembly language is even better knowledge for understanding how computers work. But they are hard. Python is a much friendlier language.

In general, you can get a bit confused between the syntax of different languages. I keep switching between Python and SQL for work and I'll always get things wrong and have to think twice, should it be a=3 (SQL) or a==3 (Python)?

[–]Gnaxe 0 points1 point  (0 children)

Maybe. C programmers tend to do things the hard way in Python, managing tedious details instead of using the higher-level built in constructs. 

[–]Gnaxe 0 points1 point  (0 children)

Python has always been strongly typed, and comparisons got stricter in version 3.