Skip to content

Instantly share code, notes, and snippets.

View 1bthomp's full-sized avatar

Brian Thompson 1bthomp

View GitHub Profile
import java.util.Scanner;
//This program is used to determine if you will be eligible for a bonus
public class bonus {
public static void main (String[] args){
Scanner read = new Scanner(System.in);
//This is the amount of years the person has worked at their company
int yearsWorked;
@1bthomp
1bthomp / _init_.py
Created February 12, 2024 23:32
L2. Numbers
no lines of code
@1bthomp
1bthomp / _init_.py
Created February 13, 2024 22:41
L3 HW
no code
@1bthomp
1bthomp / homework.py
Created February 15, 2024 17:57
int.py
no code here
@1bthomp
1bthomp / homework.py
Created February 23, 2024 18:32
Lesson 6
# 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
# 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
# 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.
# 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()
@1bthomp
1bthomp / homework.py
Created March 11, 2024 17:47
L10 HW
# 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
# 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")