Day 10 – Functions with Outputs
Day 10 Goals Functions with Outputs (return) Multiple return values Coding Exercise: leap year Docstrings Project: Calculator Coding Exercise: def is_leap_year(year): leap_year = True if year % 4 == 0:…
Day 10 Goals Functions with Outputs (return) Multiple return values Coding Exercise: leap year Docstrings Project: Calculator Coding Exercise: def is_leap_year(year): leap_year = True if year % 4 == 0:…
Write a text based Blackjack game. My Solution: import random # needed to draw a random item from the list from art import logo import os # sets up the…
Day 12 Goals Namespaces: Local vs Global Block Scope (python doesn't use it) Coding Exercise: Prime number checker Modifying Global Variables (Hint: don't) Constants and Global Scope Project: Number Guessing…
My aim with this content is to produce something that will help me solidify the new knowledge from that course and write something that you can consume in small chunks.
A Word on Fonts Before we dive into the typing anything into the PowerShell console, a quick word on fonts and colours. There are a number of "special characters" that…
PowerShell - my spell checker keeps trying to correct my spelling to "Powers Hell" and for some this might be a more accurate description, but what is it's history?
A brief tutorial on aliases, modules and how to read and set environment variables using PowerShell
Cmdlet structure And so to a discussion on cmdlet structure. PowerShell use a verb noun structure which may be followed by some parameters. Parameters are not compulsory as we saw…
The pipeline is a feature that allows the output of one command to be automatically transferred into another command. You can string any number of commands together and they will…
Often when you run a cmdlet you will get far more results than you can view. You will need to tell the cmdlet which particular ones you want and you…