|
|
|
|
|
by blackrock
1978 days ago
|
|
In C, you learn to modify a letter to upper or lower case, by finding its ascii number, and adding to it, or subtracting from it, a magic number. In Python, you just use the .lower() or .upper() function. One and done. Move onto your next problem. In C, you hope to not trigger an array-index-out-of-bounds error, resulting in a segmentation fault. Then, not understanding what you did wrong, and then having to fire up the debugger to find your needle in the haystack. Hours later, you’re just like, I just want to modify a string. Why is it so difficult? |
|
Your rant should be about bad teaching of bad habits instead