Chapter 1.1: C# Intro

Learn by doing!

var name = "Bob";
var n = 3;
var temp = 34.4;
Console.WriteLine($"Hello, {name}! You have {n} in your inbox. The temperature is {temp} celcius");

C# has a variety of data types and unlike Python you have to declare the type of variable you want to instantiate (ie. for an integer variable you have to use int <variable>; ). The syntax is mildly inconvenient, however, luckily you can be lazy and use the “var” declaration which automatically assigns a type to the instantiated object/variable.

Good Resources



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abish Pius

Data Science Professional who teaches with unflashy, simple to understand python code.