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
saveliy_v [14]
3 years ago
12

Assume that sentence is a variable that has been associated with a string consisting of words separated by single space characte

rs with a period at the end. for example: "this is a possible value of sentence." write the statements needed so that the variable secondword is associated with the second word of the value of sentence . so, if the value of sentence were "broccoli is delicious." your code would associate secondword with the value "is" .
Computers and Technology
2 answers:
Morgarella [4.7K]3 years ago
6 0

Answer:

The solution code is written in Python.

  1. text  = "broccoli is delicious."
  2. wordList = text.split(" ")
  3. secondword = wordList [1]

Explanation:

Firstly, let us declare a variable text and assign it with a string (Line 1).

Next, we can use the split() method and use single space character " " as the delimiter to separate the words in the string by turning it into a word list (e.g. ["broccoli",  "is", "delicious."]) (Line 2)

We can use the index 1 to address the second word from the wordList and then associate it with variable secondword (Line 3).

sleet_krkn [62]3 years ago
3 0

The right code is,

secondWord = sentence.substr (sentence.find ("`") + 1);

secondWord = secondWord.substr (0, secondWord.find ("`"));

You might be interested in
Jason Is Working On A Video Science Project. As He Is Working On It, He Saves The Project.
zubka84 [21]
I think the problem here is either you don't have enough space and power to run this with your file or the file its self is too large if that's not the case try to google it and look for techisky for help
7 0
4 years ago
When adapting graphs for slides,
mojhsa [17]
I would say don't use more than 8-9 graph lines

7 0
4 years ago
Select each of the steps involved in creating a table in a presentation.
klio [65]

Answer:

huh? Making your presentation more interesting through the use of multimedia can help to improve the audience's focus. PowerPoint allows you to use images, audio and video to have a greater visual impact. These visual and audio cues may also help a presenter be more improvisational and interactive with the audience.

7 0
3 years ago
Which of the following defines code?
balu736 [363]

Answer:

A set of instructions, written by a programmer, that is used by computers to perform tasks

3 0
3 years ago
Question 13 (6.67 points)
Montano1993 [528]

Answer:Offers professional document appearance

Explanation:

6 0
3 years ago
Other questions:
  • Why do i get message notifications but when i click on it it says i have no new messages?
    7·1 answer
  • Marilyn needs help exporting her spreadsheet as a few different types of files. She needs to know exactly how her file should be
    11·1 answer
  • Question #17<br> Describe the two methods to open the "Conditional format rules" pane.
    13·1 answer
  • Your company has purchased another company that also uses Windows Server 2016 and Active Directory. Both companies need to be ab
    11·1 answer
  • Mention any three features of an antivirus software? ​
    5·1 answer
  • PLEASE READ ( if you want ) Before i used to have over 30 brainliest and i was just trying to earn points so i could get to ace,
    9·1 answer
  • What is software and explain the five types of software
    5·2 answers
  • PLEASE GET THIS CORRECT I AM TIMED. CORRECT ANSWER GETS BRAINLIEST
    10·2 answers
  • To control how and when the slides should appear during the slide show, we use the__________________ feature​
    12·1 answer
  • Can anyone tell me about Microsoft some important features for partical
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!