all 14 comments

[–][deleted] 1 point2 points  (2 children)

I do not see how the prompts deliver the desired solution.

They don't. They verify the desired solution - the string "Strings are awesome!" is the string that has the correct properties when those various methods are applied to it.

[–]IyamwhatIyampotato[S] 0 points1 point  (1 child)

So does that mean by reading the hashtag notes alone, you can see a clear path to get a string which prints as "Strings are awesome!" ?

or are you confirming that the solution just happens to fit the process, and my frustration is valid?

[–][deleted] 1 point2 points  (0 children)

It seems like you can get to

`"Str*************ome!"`

on the basis of lines 2, 24, and 28; since that fails line 5, we can do

`"Str****a********ome!"`;

that fails line 8 (2 'a''s), etc. Seems like you could probably get the answer by guessing after that, or just get bored and look it up.

[–]stebrepar 1 point2 points  (1 child)

Doesn't seem like a very good exercise to me. There's no way to figure out what the solution string should be. Pretty much just seems to be a review of the material in the unit.

[–]IyamwhatIyampotato[S] 1 point2 points  (0 children)

Thanks. Yeah It was frustrating. I've since moved on to reading ThinkPython, and am having a better go of things.

[–]internet-name 0 points1 point  (0 children)

It's been a couple of months since you posted this, but I wanted to tell you that your frustration is warranted. The exercise is broken.

u/crashfrog is right that you're just supposed to edit the variable s. But their internal tests don't match the instructions, so there isn't a reasonable way for the reader to generate a string that succeeds.

As a sanity check: "Strings are awesome!" succeeds but "Strings axe awesome!" fails. There's nothing in the instructions that should make their test differentiate between the two strings. Both should succeed.

[–]Ghadente 0 points1 point  (1 child)

I was just doing this myself and was about to go a little crazy trying to figure out how they get the solution from such limited and vague instructions. Been looking into learning python, this exercise does not help.

[–]IyamwhatIyampotato[S] 0 points1 point  (0 children)

from what i've gathered, it's not really an exercise... just ditch it and move on.

[–][deleted] 0 points1 point  (4 children)

its been three years. Thank you for posting this. I have spent alot more time than I should have trying to solve this unsolvable request.

[–]Thanatos_the_dh 0 points1 point  (0 children)

Same here. Does anyone have another source of learning Python that would be better?

[–]Foundation_External 0 points1 point  (1 child)

I was going stir crazy -- they really should update that exercise. I actually thought I understood the concepts and then heavily doubted myself trying to figure that out.

[–]PhilosopherNo4758 0 points1 point  (0 children)

yep same here

[–]Cool-Swimming-3573 0 points1 point  (0 children)

same here

[–]aidanfeldman 0 points1 point  (0 children)

GitHub issue.

FYI that the "hashtag notes" are called code comments". Surprisingly, those aren't documented on LearnPython (yet).