1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
goldfiish [28.3K]
3 years ago
13

The variable sentence stores a string. Write code to determine how many words in sentence start and end with the same letter, in

cluding one-letter words. Store the result in the variable same_letter_count.
Computers and Technology
1 answer:
irina [24]3 years ago
4 0

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

You might be interested in
Software and technology that allow people to work together on a task are known as
exis [7]

Collaborative software or groupware.

5 0
3 years ago
Read 2 more answers
Urgent will give brainliest who solves this....
Ratling [72]
THIS IS MY PERSONAL OPINION:
The world is indeed changing very fast, and the future brings new possibilities and new realities. I foresee that humans will thrive for another 50 years, until the global warming situation reaches its limits. The people in the future I think will not have any ( maybe rarely) social interactions, maybe we will go to the moon etc. but i still strongly believe that the end of humanity is decades close.
I hope this helps you :)
5 0
3 years ago
Read 2 more answers
Using your digital camera, frame a well-lit scene with the following settings:
yan [13]

Answer:(Answers may vary.)

Initial shutter speed: 1/50 second

Initial aperture: f/8

Result: Dark/light image

Shutter speed: 1/30 second (if the original image is dark)

Aperture: f/8

Result: A lighter image

Shutter speed: 1/80 second (if the original image is light)

Aperture: f/8

Result: A darker image

Initial shutter speed: 1/50 second

Initial aperture: f/8

Result: Dark/light image

ISO: 400, 200, 100  (if the earlier image is overexposed)

ISO: 100, 200, 400 (if the earlier image is underexposed)

Explanation:

6 0
3 years ago
Which shortcut key aligns to the center of a page
riadik2000 [5.3K]

Answer:

To make text centered, select and highlight the text first, then hold down Ctrl (the control key) on the keyboard and press E. To make text right aligned, select and highlight the text first, then hold down Ctrl (the control key) on the keyboard and then press R.

Explanation:

4 0
3 years ago
Create a function that takes a list of numbers between 1 and 10 (excluding one number)
Luda [366]

def missing_num(lst):

   for n in range(1,11):

       if n not in lst:

           print(n)

lst = (1,3,4,5,6,7,8,9,10)

missing_num(lst)

I hope this helps!

8 0
3 years ago
Other questions:
  • The Tell Me feature also includes access to the _____ feature.
    13·1 answer
  • Task:create a struct that looks like:typedef struct person{ int age; double height;} Person;Create an array of Persons. Read dat
    13·1 answer
  • Many people keep time using a 24 hour clock (11 is 11am and 23 is 11pm, 0 is midnight). If it is currently 13 and you set your a
    10·1 answer
  • Mack has started with his first photographic assignment for a magazine. He has clicked around thirty images and uploaded them on
    10·1 answer
  • Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. What critical detail must she ha
    9·1 answer
  • Finish the code where it says //YOUR CODE HERE
    11·1 answer
  • What is output? x=-2 y=-3 print (x*y+2)
    10·1 answer
  • Ayuda!!
    14·1 answer
  • What font family is Times New Roman an what font family is Arial?
    9·2 answers
  • What are the academic benefits of practicing netiquette? Check all that apply.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!