Question: Question 3 ( 1 0 pts ) : Use the index ( ) method to get the index of the character in wish that is

Question 3(10pts):
Use the index() method to get the index of the character in wish that is equal to "H". Store this index in a variable named idxH .
Call count () method of string ojbect to find out how many times "a" appears in wish. Store this number in a variable named how_many .
# Just run this cell to create a string named wish.
wish = "May your holidays sparkle as much as you do and that friends and family always surround you. Happy holidays!"
Question 3 ( 1 0 pts ) : Use the index ( ) method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!