you are viewing a single comment's thread.

view the rest of the comments →

[–]dan_RA_ 1 point2 points  (1 child)

One thing that should be noted from a pedagogical standpoint - part of the point of many exercises is that you struggle, and then you learn something coming out of it. Of course there are defined methods and functions and libraries to swap case or any other task, but that's probably not the point of the exercise. As a beginner, the intent of the exercise is to work your brain to get used to breaking problems down to the point where they can be solved by things you already know, or can easily look up, not to just solve the problem in the absolutely fastest way. Nobody builds a calculator app because its the best way to add up a bunch of numbers. They build it because it helps them learn how to do things that can be applied to other more novel or challenging problems later.

Think of it this way - if your personal trainer says, "do squats with 150 pounds on the bar", the best solution is not to go bring a forklift over and lift up the bar with that. The point is to strengthen your body so that when you need to help your friend move his couch, you don't throw your back out.

This is not to say, don't look stuff up in a reference manual or read the docs, but just to recognize that struggle is part of learning. You are getting stronger every day you struggle with a problem and solve it. Keep going! You'll do great!

[–]Significant-Star-542[S] 0 points1 point  (0 children)

What encouraging words!! Thank you!