Question: Type a single Python expression that, given a strings,evaluates to another string where the first occurrence of the letter'a'is replaced by'#'. Example: fors = 'I
Type a single Python expression that, given a strings,evaluates to another string where the first occurrence of the letter'a'is replaced by'#'.
Example: fors = 'I ate an apple', the result will be'I #te an apple'
Hint: what does the string method find do?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
