Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi! I'm having trouble writing this code (in python). Please help! Thanks. while statements 1 point Compose a program which counts each time that the
Hi! I'm having trouble writing this code (in python). Please help! Thanks.
while statements 1 point Compose a program which counts each time that the letter 'y' does not occur in the string text. (That is, the number of characters that are not 'y'.) The result should be stored in an int named count. Your code should use a while loop. The text used is taken from Robert Frost's "The Gum Gatherer". Starter code (click to view) Answer* 1 text = "I told him this is a pleasant life" 2 index = 0 3 count=0 4 while indexStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started