Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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