Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics Strings Escape Sequences

Why is my code displaying a quote about "wumbo" not being a real word?

Program.cs
using System;

class Program
{

        static string Quote (string words)
        {
            return words;
    }

    static void Main(string[] args)
    {
        // Quote by Maya Angelou.
        Console.WriteLine(Quote("\"When you learn, teach. When you get, give.\""));
        // Quote by Benjamin Franklin.
        Console.WriteLine(Quote("\"No gains without pains.\""));
    }

}

1 Answer

Quincey Gleason
Quincey Gleason
3,465 Points

Did you make sure to save the file before running it?

Quincey--This was for the escape sequences challenge and was supposed to display the quotes by Maya Angelou and Ben Franklin. When I run the above code, the console displays this : We called Quote("Patrick, I don't think wumbo is a real word."), but we got a return value of: 'Patrick, I don't think wumbo is a real word.'. We were expecting '"Patrick, I don't think wumbo is a real word."'.

I tried refreshing the page, using different variable names, and rewriting the code from scratch, but the same message appears in the console.

When I hit the "Check Work" button, the same message about wumbo appears as the "Bummer" message.

Edit: I poked around and found that other people had had similar problems. There is a long discussion about it in this thread: https://teamtreehouse.com/community/is-this-a-joke