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 Sep 9, 2022
1 parent 85b8125 commit 4aad0ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Fake_Binary_kyu8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Convert the code into morse, anything less than 5 is 0
# Anything 5 or up is a 1

def fake_bin(x):
morse = []
for num in x:
if num < "5":
morse += "0"
else:
morse += "1"
return (''.join(morse))

0 comments on commit 4aad0ca

Please sign in to comment.