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…