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 15, 2022
1 parent f97b4c3 commit 7c1e60a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions All_star_code_challenges_18_kyu8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# For loop to go through the letters whilst an if loop adds to the count if the letter is the specifies code letter

def str_count(strng, letter):
count = 0
for let in strng:
if let == letter:
count += 1
return count

0 comments on commit 7c1e60a

Please sign in to comment.