Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanBaird authored Aug 20, 2022
1 parent f1ce424 commit 05910af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Will_there_be_enough_space_kyu8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Checking if there is enough space on a bus
# If statement that works out if the is enough capacity
# returns the lack of capacity using the negative number as an absolute

def enough(cap, on, wait):
if cap <= ( on + wait):
return abs(cap - (on + wait))
else:
return False

0 comments on commit 05910af

Please sign in to comment.