Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions labs/STAWP.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def main():
print("STAWP")


1 change: 1 addition & 0 deletions labs/STAWP.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "STAWP"
1 change: 1 addition & 0 deletions labs/lab_1/git_example
Submodule git_example added at 94d26f
6 changes: 4 additions & 2 deletions labs/lab_1/lab_1a.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@

The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10
with your name. Then, save the code, add it to the staging area, and commit it to the Git tree.

This is to somulate a change made on a robot: robot_speed = 8 #m/s
"""

def main():
print("Hello World!")

name = "" # TODO: Insert your name between the double quotes
print("Vim works! RIP my spotify")
name = "Hikari" # TODO: Insert your name between the double quotes

print(f"{name}, Welcome to the CSS course!")

Expand Down
8 changes: 7 additions & 1 deletion labs/lab_1/lab_1b.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ def simple_calculator(operation: str, num1: float, num2: float) -> float:
raise ValueError("Cannot divide by zero.")
else:
raise ValueError("Invalid operation. Please choose from 'add', 'subtract', 'multiply', or 'divide'.")

def request_sanitized_number(promt: str)-> float:
while True:
try:
number = float(input(prompt))
return number
except ValueError:
print("Invalid input. Please enter a valid number.")
def main():

print(f"===== Simple Calculator =====")
Expand Down
3 changes: 3 additions & 0 deletions labs/lab_1/ls_date.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

ls
date
1 change: 1 addition & 0 deletions labs/lab_1/test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is a test text file
1 change: 1 addition & 0 deletions labs/lab_1/testyay.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is another text file