Question: 1. Write a Python class MyLongString that includes: a) A method __init__ that stores the string. b) A method len_measure that will measure the length

1. Write a Python class MyLongString that includes: a) A method __init__ that stores the string. b) A method len_measure that will measure the length of the string. c) A method reverse_string which will reverse a string word by word. d) A method reverse_string_c which will reverse a string character by character. e) A method count_let_dig that will count the number of digits and alphabets. f) A method first_occ that will find the index of the first occurrence of a character in the string. Otherwise it will return -1

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 Databases Questions!