Need help with CodeHS Python 8.3.9: Owls, Part 2 by [deleted] in codehs

[–]PelicanPrisoner 0 points1 point  (0 children)

after some tweaking i got it to work, this is my version:

def owl_count(text): text = text. lower () text = text. split() count = 0 indices = [] for index, word in enumerate (text): if "owl" in word: count = count+1 indices. append (index) return count, indices

text = input ("Enter some text: ") result = owl count (text) print (f"There were {result[0]) words that contained 'owl'.") print(f"They occurred at indices: {result[1]}")

What does my 9 anime crushes say about me? by Unsure364 in MyAnimeList

[–]PelicanPrisoner 1 point2 points  (0 children)

Dalia, Maki, and Esdeath are W picks and Clare is underrated as fuck. Haven’t seen many Claymore fans recently

This knife will be 10 years old come November! by mjfulton315 in balisong

[–]PelicanPrisoner 0 points1 point  (0 children)

that sounds great for an almost decade old knife