what is the output? there are no answer options and I'm completely lost.

>>>answer = "five times"

>>>answer[2:7] ​

Answers

Answer 1

The string answer = "five times"

All strings start at index 0 and end at the length of the string minus 1

So, if we count appropriately, index 2 is v and index 7 is m

answer[2:7] goes from v to m including v but not m, therefore,

answer[2:7] = "ve ti"


Related Questions

Mrs Jones had p hens then she decided to buy p more hens. how many hens does she have in all?​

Answers

Answer:

2p

Explanation:

if she had p, then she got p again, she got two p amounts. p+p = p*2 = 2p

1) An employer has decided to award a weekly pay raise to all employees by taking the square root of the difference between his weight and the employee’s weight. For instance, an employee who weighs 16 pounds less than the employer will get a $4 per week raise. The raise should be in whole dollars (an int). Write a class file that prompts the user for the employee and the employer weight. Please output the correct raise amount making sure that all inputs are included in the output statement.

Answers

Answer:

Written in C++

#include <iostream>

#include<cmath>

using namespace std;

int main(){

   int weight1, weight2, diff;

   cout<<"Employees Weight: ";

   cin>>weight1;

   cout<<"Employers Weight: ";

   cin>>weight2;

   diff = abs(weight1 - weight2);

   float pay = round(sqrt(diff));

   cout<<pay;

   return 0;

}

Explanation:

I've added the source file as an attachment where I used comments as explanation

1. Discuss data processing concepts and the representation of data in the computer


2. Explain how they work together to process data

Answers

Answer:

gkvjbdsvjnmfbhui jgbfdshjcxvabgsuciusgBFIULWGSfuRyt vqwyrgfgweVGYGTV7BWUIEGDWYUGDCYg

Explanation:

Other Questions
Please match the word to the correct definition. PLZ HLPA. coins made of gold, silver, copper, or brass, considered a store of wealthB. a process where a foreign power (or a competitor industry) will attempt to sell a similar or same product in an attempt to make a sale over the domestically made good.C. Goods that are illegally brought in to avoid the duties or regulations of the mother countryD. taxes levied against goods from other countriesE. a field that studies how societies use scarce resources to produce valuable products and distribute them.F. Raw materials shipped from a colony to the mother country, they are taken from the environmentG. Goods being shipped out of the mother country to be sold in a foreign countryH. taking place or being created in the mother countryI. Goods being brought into a country from another countryJ. another word for a tax levied against a foreign good.K. Products produced in the mother country by skilled laborers for sale in their colonies or in foreign countriesL. laws created by the mother country to regulate, tax, and form monopolies on trade with the mother countryO. a belief that exports should be greater than imports so that a country can grow wealthier over time relative to other countries, especially rivalsN. taking place or being created in a country outside of the mother country.P. the exclusive control of the supply or the trade of goods1. Economics2. Balance of Trade3. Domestic4. Foreign5. Imports6. Exports7. Competition8. Monopoly9. Tariffs10. Duties11. Money12. Extractive Products13. Finished Goods14. Smuggling15. Navigation Acts Elements in the same group have similarO physical and chemical propertiesmass numbersO numbers of clectronsO numbers of protons Valeria is training for a marathon. She jogs the same 15 mile route twice in one week. On Monday, she jogged the route in 1.75 hours. Thursday, she tried to improve her speed. She jogged the same route in 1.63 hours. Her smart watch said her rate on Monday was 8.57 miles per hour. She forgot to set the smart watch to calculate her rate on Thursday. Use the information you have to calculate how fast she was running on Thursday. What is the ratio of 3 inches to 20 feet Which angles are coreesponding angles? What is 51/5*(-5) ? Theodore Roosevelt engaged the Spanish in a series land battles in the island territory of A-CubaB-Philippines C- hawaiiD- Guam Which phrase correctly describes the particles that make up water vapor?A. Having more energy than particles in liquid waterB. Making up a rigid but disorganized structureC. Making up a rigid but ordered structureD. Being compressed together so that they are touching Find the difference quotient for f(x) = 3x2 12._x+_h ?????????????????????????? If you were to describe a translation of triangle , what information would you need to include in your description? Find the quotient. Answer to the nearest hundredth. 6,476 12 solving equations of different solution types help please I need help now what do you mean by the region or space that an electron revolves the nucleus in an atom? How close are the two people in the painting the lovers by Rene Magritte? Which of the following represent an ecosystem?A: A lakeB: a fish tankC: a prairie D: All of these Which two conditions are required for cloud formation?A. high humidity and warm temperaturesB. high humidity and cool temperaturesC. warm tempatures and the presence of particlesD. cool tempatures and the presence of particles A waterwheel has a radius of 4 feet, and the center of the wheel is 1 foot under the waterline. You notice a yellow markat the top of the wheel. If the wheel rotates radians, how far above the water is the yellow mark?With work quickly please!! This is for a health classI need the answers by tomorrow ASAP!For the PBS documentary about Dying To Be Thin