This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Homework: Classes | |
# Read carefully until the end before you start solving the exercises. | |
# Practice the Basics | |
# Basic Class | |
# - Create an empty class HouseForSale | |
# - Create two instances. | |
# - Add number_of_rooms and price as instance attributes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HOMEWORK: Dictionaries | |
# Read carefully until the end before you start solving the exercises. | |
# Basic Dictionary | |
# Create an empty dictionary and then add a few of your friends. Make the key their email (can be fake) | |
# and the value their name. When you're done, create the same dictionary as a pre-populated dictionary. | |
friends = {} | |
friends = {'Jerry': 'jerry@gmail.com', 'Jay': 'jay@gmail.com', 'Joe': 'joe@gmail.com'} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HOMEWORK: Functions | |
# Read carefully until the end before you start solving the exercises. | |
from wsgiref.validate import validator | |
# Basic Function | |
# Define a basic function that only prints Hello. Create the definition using def and the call that executes it. | |
def hello(): | |
print("Hello") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Homework Lesson 10 - Workshop - Homework | |
# READ CAREFULLY THE EXERCISE DESCRIPTION AND SOLVE IT RIGHT AFTER IT | |
################################################################################ | |
### When solving coding challenges, think about the time complexity (Big O). ### | |
################################################################################ | |
# Challenge 1 | |
# Multiplication of a three-digit number |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HOMEWORK: Functions | |
# Read carefully until the end before you start solving the exercises. | |
# Basic Function | |
# Define a basic function that only prints Hello. Create the definition using def and the call that executes it. | |
def hello(): | |
print("Hello") | |
hello() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Homework Lesson 8 - Workshop - Homework | |
# READ CAREFULLY THE EXERCISE DESCRIPTION AND SOLVE IT RIGHT AFTER IT | |
# Challenge 1 | |
# Two Lowest Elements | |
# | |
# Your task is to write a program that takes a list of numbers and finds | |
# the two smallest numbers in it. The two smallest numbers can be equal to | |
# each other or different. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Homework: Loops | |
# 🔥Read carefully until the end before you start solving the exercises🔥 | |
# Practice the Basics 💪🏻 | |
# You can uncomment or type the necessary code on each task | |
# --------------------------------------------------------------------- | |
# Task 1. Create a basic for loop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Homework: Lists | |
# 🔥Read carefully until the end before you start solving the exercises🔥 | |
# Practice the Basics 💪🏻 | |
# Empty, Pre-populated, and Lists within Lists | |
# You can uncomment or type the necessary code on each task |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
no code here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
no code |
NewerOlder