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 May 12, 2022
1 parent 9a0a749 commit fc0ad4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Will_he_survive_kyu8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# A function that calculates a if a hero will have enough bullets to kill two dragons protecting

def hero(bullets, dragons):
if bullets >= dragons * 2:
return True
else:
return False

0 comments on commit fc0ad4a

Please sign in to comment.