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
ddd [48]
2 years ago
8

Write a statement that slices a substring out of the string quote and puts it into a variable named selection. If given the stri

ng 'The only impossible journey is the one you never begin.', selection should contain 'possible jou' after your statement executes.
Computers and Technology
1 answer:
Daniel [21]2 years ago
8 0

The statements that slices a substring out of the string quote and puts it into a variable named selection is as follows:

text = "The only impossible journey is the one you never begin."

selection = ""

selection += text[11:23]

print(selection)

The code is written in python.

The string is stored in a variable called text.

The variable selection is declared as an empty string. The purpose is to store our new substring.

The third line of the code is used to cut the string from the 11th index to the 23rd index(excluding the 23rd index) and add it to the declared variable selection.

Finally, we output the variable selection by using the print statement.

The bolded values in the code are python keywords.

read more; brainly.com/question/20361395?referrer=searchResults

You might be interested in
You are building a computer from spare parts in the office. You build the computer and realize you have several different types
san4es73 [151]

Answer:

The pin count is the same

Explanation:

5 0
3 years ago
Motivational appeals refer to
Lesechka [4]

Answer: D) All of the given options

Explanation:

Motivational appeals refers to the an emotional nature developed to increase individual values. It is a tool of emotions which target the psychological needs. It is a visualization of someone's desire and values and method of satisfying the emotions. Motivational appeals are divided into many categories like motivation and emotions.

3 0
3 years ago
2) An algorithm that takes in as input an array with n rows and m columns has a run time of O(nlgm). The algorithm takes 173 ms
mr Goodwill [35]

Answer:

The algorithm takes 346 ms to run on an input array with 1500 rows and 4096 columns.

Explanation:

For an input array with 1000 rows and 512 columns, the algorithm takes 173 ms.

We want to find out how long will the algorithm take to run on an input array with 1500 rows and 4096 columns?

Let the algorithm take x ms to run 1500 rows and 4096 columns.

For an input of n rows and m columns, it takes

n \: log_{2} \:m

So,

1000 \: log_{2} \:512 = 173  \\\\1000 \: log_{2} \:2^{9}  = 173 \:\:\: ( 2^{9} = 512)  \\\\1000 \times 9  = 173 \:\:\:\:\: \: \: eg. 1

and

1500 \: log_{2} \:4096 = x  \\\\1500 \: log_{2} \:2^{12}  = x \:\:\: ( 2^{12} = 4096)  \\\\1500 \times 12  = x \:\:\:\:\: \: \: eg. 2

Now divide the eq. 2 by eq. 1 to find the value of x

\frac{1500 \times 12}{1000 \times 9}   = \frac{x}{173}  \\\\\frac{18000 }{9000}   = \frac{x}{173}  \\\\2   = \frac{x}{173}  \\\\x = 2 \times 173 \\\\x = 346 \: ms

Therefore, the algorithm takes 346 ms to run on an input array with 1500 rows and 4096 columns.

8 0
3 years ago
What are 3 ways you can use images to make your site better?
Evgen [1.6K]

Answer:

1. Add visual interest, explain a topic more effectively, break up long parts of text

2. Following all copright guidelines, Trying to make the image not look akward on the page

3. Give the creator of the picture credit

6 0
3 years ago
A demarc is the point in a telephone network where the maintenance responsibility passes from a telephone company to the subscri
Anika [276]

Answer:

True

Explanation:

Usually, this demarcation is a box installed outside a client's property (for instance, a home). A demarcation marks the spot in relation to communication assets operated by one organisation. This is the connection between customer-based systems and network service provider systems in telecommunications terms.

4 0
3 years ago
Other questions:
  • You should use the longest possible shutter speed for all firework photographs.
    8·2 answers
  • Mathematical expression that might link numbers in cells
    14·1 answer
  • What is the term used for describing the judgement or common sense part of problem solving​
    11·1 answer
  • Manuel has set up his network so that some employees can open and view files but are unable to edit them. Others can open, view,
    10·1 answer
  • ........ is a formal description of message formats and the rules for exchanging those messages
    12·1 answer
  • lance has three tables in his database. He wants to generate a report to show data from the three tables. Therefore, he decides
    7·2 answers
  • By
    7·1 answer
  • Qué propiedades del bromato de potasio han hecho que sea el aditivo más usado en la fabricación del pan​
    8·1 answer
  • What type of activities are performed with the help of the software used in hospitals?
    7·2 answers
  • Patricia Works in a coffee shop and manages the inventory of items.for each item she needs to recover the quantity in stock and
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!