FAQ: Working with Text - Introduction to Working with Text

This community-built FAQ covers the “Introduction to Working with Text” exercise from the lesson “Working with Text”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Learn C#

FAQs on the exercise Introduction to Working with Text

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

So a few questions about this program.

First, did the programmer purposefully omit the first line of the text? Or was it a happy accident that the line about having wine is omitted?

Trying to figure it out, it just looks like a quotation was left out.

Second, what does line 15 do? Looking at it, its not referenced anywhere else in the code, which makes it look pretty useless.

Was the intention to find a place where March Hare was lower case, since the value of it points it towards toFind?

Lastly, the index I’m going to assume works on a per character basis, treats a value (drink) as a single character, and omits white space. Which is how it came about to 22?

1 Like

I’d also like to know why the first line was omitted. I tried playing around with it for a while but couldn’t figure out how to make it display properly. Hope someone replies with an answer.

I don’t think the code on line 15 does anything in this program since it isn’t referenced. It seems to run the same without that bit included.

If you read line 18, it’s not printing the whole text to the console, only a substring starting from March Hare

1 Like