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 Jun 20, 2022
1 parent c63a5a9 commit 0524d6c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Find_the_position_kyu8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Return the letter of the alphabet a given letter is

def position(alphabet):
count = 0
for letter in "abcdefghijklmnopqrstuvwxyz":
if letter != alphabet:
count += 1
elif letter == alphabet:
count += 1
return "Position of alphabet: " + str(count)

0 comments on commit 0524d6c

Please sign in to comment.