Cointoss Simulation to Count Heads and Tails

Python code

It virtually tosses 100 times and then prints the number of heads and tails. You can change the number of tosses at line 2 to any positive integer to see what happens.