Change static list [6] to a dynamic choice
Otherwise list.Remove("Grumpy") will now cause Console.WriteLine to throw a run-time error if not corrected
MODIFY
src/Chapter17/Listing17.01.UsingList.cs
src/Chapter17/Listing17.01.UsingList.cs
@@ -14,8 +14,7 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter17.Listing17_01
Console.WriteLine(
$"In alphabetical order { list[0] } is the "
- + $"first dwarf while { list[6] } is the last.");
-
+ + $"first dwarf while { list[^1] } is the last.");
list.Remove("Grumpy");
}

Change static list [6] to a dynamic choice

Otherwise list.Remove("Grumpy") will now cause Console.WriteLine to throw a run-time error if not corrected