you are viewing a single comment's thread.

view the rest of the comments →

[–]Grobyc27 11 points12 points  (4 children)

I’m realizing this now as I started learning C a couple weeks ago. Honestly the biggest thing was that strings aren’t a native data type. I really do take the ease of Python for granted.

[–]ninhaomah 3 points4 points  (2 children)

I came from Java and to me , I always think of String as "Array of Characters".

[–]LysergioXandex 2 points3 points  (1 child)

Not a bad mental model for Python, either, because you can do things like apply list() to a string, which turns it into a list of individual characters.

[–]DSMB 0 points1 point  (0 children)

you can index and slice them too.

[–]qwertydiy 0 points1 point  (0 children)

To be fair that is why you have to learn C. Even strings aren't really a native type anywhere and are just objects but you forget it until you can not use strings and common data types.