here’s the assignment
This program is an extension of your previous ‘Owls’ program. Copy and paste your code, ask the user to input text, and then call your function to check the inputted text for the word “owl”. In addition to just reporting how many words contained the word owl, you should report the indices at which the words occurred in the list of words!
The program is supposed to take user input, find how many times the word “owl” is in it and then say where the words are.
Here’s a link that shows the assignment and my code (can’t indent well on mobile) https://imgur.com/a/kqVRype
submitted by /u/Soggy_Fire_Balls
[link] [comments]
r/learnpython here’s the assignment This program is an extension of your previous ‘Owls’ program. Copy and paste your code, ask the user to input text, and then call your function to check the inputted text for the word “owl”. In addition to just reporting how many words contained the word owl, you should report the indices at which the words occurred in the list of words! The program is supposed to take user input, find how many times the word “owl” is in it and then say where the words are. Here’s a link that shows the assignment and my code (can’t indent well on mobile) https://imgur.com/a/kqVRype submitted by /u/Soggy_Fire_Balls [link] [comments]
here’s the assignment
This program is an extension of your previous ‘Owls’ program. Copy and paste your code, ask the user to input text, and then call your function to check the inputted text for the word “owl”. In addition to just reporting how many words contained the word owl, you should report the indices at which the words occurred in the list of words!
The program is supposed to take user input, find how many times the word “owl” is in it and then say where the words are.
Here’s a link that shows the assignment and my code (can’t indent well on mobile) https://imgur.com/a/kqVRype
submitted by /u/Soggy_Fire_Balls
[link] [comments]