Question: First Three Spaces This question involves finding spaces in a string. In a file spaces. py , write a program that reports the first three
First Three Spaces
This question involves finding spaces in a string. In a file spaces. py write a program that reports the first three occurrence of a space, using a while loop:
Enter a string: This is the user's input
There's a space in position
There's a space in position
There's a space in position
Make sure your program behaves correctly and doesn't give an error if there are less than three spaces in the string but otherwise behaves the same
Enter a string: This is the
There's a space in position
There's a space in position
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
