Answer:
sentence = "hello wow a stores good"
same_letter_count = 0
sentence_list = sentence.split()
for s in sentence_list:
if s[0] == s[-1]:
same_letter_count += 1
print(same_letter_count)
Explanation:
*The code is in Python.
Initialize the sentence with a string
Initialize the same_letter_count as 0
Split the sentence using split method and set it to the sentence_list
Create a for loop that iterates through the sentence_list. If the first and last of the letters of a string are same, increment the same_letter_count by 1
When the loop is done, print the same_letter_count
Hi,
The word you are looking for is "programs".
Hope this helps.
r3t40
Answer: 10 students
Explanation:
Students younger than 10 = 50%
Students that are 10years old = 1/20 = 1/20 × 100 = 5%
Students that are older than 10 but younger than 12 = 1/10= 1/10 × 100 = 10%
Students that are 12 years or older
= 100% - (50% + 5% + 10%)
= 100% - 65%
= 35%
This means that 35% of the students are 12 years or older and we've been given the number as 70.
Let's say the total number of students is x. Therefore,
35% of x = 70
0.35 × x = 70
0.35x = 70
x = 70/0.35
x = 200
The total number of students is 200.
Therefore, the number of students that are 10years will be:
= 1/20 × 200
= 10 students
Therefore, 10 students are 10 years.