Answer:
My Favorite film is The Old Guard
Explanation:
I like The Old Guard because it has action an etc.
<span>the trace position is surprise surprise controlled by the position knob!</span>
The private modifier specifies that only other members of the same class can access the member. The protected modifier restricts access to the member to within its own package.
<h3>What are public and private modifiers?</h3>
The public access modifier permits code from both inside and outside the class to access the class's methods and properties, whereas the private modifier prevents outside code from accessing the class's methods and properties.
Thus, private modifier is the member.
For more details about private modifier, click here
brainly.com/question/15108837
#SPJ1
Answer:
1.word = "George slew the dragon"
startIndex = word.find('dr')
endIndex = startIndex + 4
drWord = word[startIndex:endIndex]
2. sentence = "Broccoli is delicious."
sentence_list = sentence.split(" ")
firstWord = sentence_list[0]
Explanation:
The above snippet is written in Python 3.
1. word is initialized to a sentence.
Then we find the the occurence of 'dr' in the sentence which is assign to startIndex
We then add 4 to the startIndex and assign it to endIndex. 4 is added because we need a length of 4
We then use string slicing method to create a substring from the startIndex to endIndex which is assigned to drWord.
2. A string is assigned to sentence. Then we split the sentence using sentence.split(" "). We split based on the spacing. The inbuilt function of split returns a list. The first element in the list is assigned to firstWord. List uses zero based index counting. So. firstWord = sentence_list[0] is use to get first element.