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 trialSikder Qais
339 PointsI don't think C# Basics questions are working
I keep running into multiple issues when trying to run C# Basics challenge tasks. It keeps showing me strange errors.
using System;
class Program
{
static string Quote(string s1)
{
return s1;
}
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
Steven Parker
231,275 PointsYour error message contained this (reformatted slightly for clarity):
...but we got...:
Patrick, I don't think wumbo is a real word.
We were expecting:"Patrick, I don't think wumbo is a real word."
The instructions say the method "should return that same string, but surrounded by double quotes.". However, the method code shown above simply returns the argument unchanged.
Characters can be added to the string using String Concatenation or String Interpolation.