C# / Beginner · Free public pilot
Learn C# in 7 Days
Build a foundation and a working study planner. Read, predict, run, change and explain each program.
Start your first lesson →Start from zero. Take your own time.
No prior programming, account or installation required. Allow 90–120 minutes per day including practice; these are author estimates. Split days across sessions freely. Seven days builds a foundation, not mastery.
All 30 lessons are open as a pilot. C# 14 compiles with the real Roslyn compiler and runs on .NET WebAssembly in code-playpad, which is experimental. The first Run downloads about 14 MB, then caches the compiler. Input must be supplied before Run. Stop ends a long run.
Each day ends with independent practice. Hints offer an idea, then a first step, before a worked solution. Day 7 includes a downloadable project and optional local instructions. Completion is saved only in this browser. Return a few days later for the final review.
We use top-level statements so your first program is one line, then add methods, lists, dictionaries, classes and records. C, C++ and Java are not prerequisites. Inheritance, interfaces and asynchronous code are later topics. Threads are not supported by this browser runtime, and this course does not need them.
Ready for interfaces, generics and LINQ? Continue with Intermediate C# →
Day 1 · About 100 minutes
Your First C# Programs
Print a calculated study plan and fix a compiler error.
- Hello, C#25 min · Read, predict and practice
- Variables and Types25 min · Read, predict and practice
- Numbers and Text25 min · Read, predict and practice
- Checkpoint: Your First Study Plan25 min · Independent checkpoint
Day 2 · About 100 minutes
Decisions and Repetition
Classify sessions and count toward a goal with bounded loops.
- Conditions25 min · Read, predict and practice
- Choosing with switch25 min · Read, predict and practice
- Loops25 min · Read, predict and practice
- Checkpoint: Reach a Goal25 min · Independent checkpoint
Day 3 · About 100 minutes
Methods and Checks
Write small methods and prove their boundaries with your own checks.
- Methods25 min · Read, predict and practice
- Parameters and Scope25 min · Read, predict and practice
- Checking Your Code25 min · Read, predict and practice
- Checkpoint: Tested Progress25 min · Independent checkpoint
Day 4 · About 100 minutes
Strings and Collections
Clean text, store tasks in a list and total minutes per topic.
- Working with Strings25 min · Read, predict and practice
- Lists and foreach25 min · Read, predict and practice
- Dictionaries25 min · Read, predict and practice
- Checkpoint: Minutes by Topic25 min · Independent checkpoint
Day 5 · About 110 minutes
Classes and Records
Model tasks with types that protect their own rules.
- Classes and Objects30 min · Read, predict and practice
- Protecting an Object's Rules25 min · Read, predict and practice
- References, Values and Records25 min · Read, predict and practice
- Checkpoint: A Small Planner30 min · Independent checkpoint
Day 6 · About 105 minutes
Input, Errors and Files
Validate supplied input, handle failure and connect several source files.
- Reading Input25 min · Read, predict and practice
- Parsing and Validating25 min · Read, predict and practice
- Exceptions25 min · Read, predict and practice
- Checkpoint: Several Source Files30 min · Independent checkpoint
Day 7 · About 120 minutes
Finish Your Study Planner
Test, extend and download a working planner, then solve a fresh brief.
- The Study Planner Brief15 min · Read, predict and practice
- Assemble the Study Planner30 min · Read, predict and practice
- Test the Planner20 min · Read, predict and practice
- Extend and Download Your Planner20 min · Read, predict and practice
- On Your Own: A Reading Log35 min · Independent checkpoint
- Come Back Later30 min · Extra delayed review