trevordavidmartin trevordavidmartin
  • 16-09-2020
  • Computers and Technology
contestada

What is the output for the following code? Enter the result in the blank.

>>> num = "abcdefghi"

>>> num[2:5]

Respuesta :

HenryLez HenryLez
  • 28-10-2020

Answer:

Cde

Explanation:

Because if you look at abcdefghi, In programming you start with 0. So it would be a:0 b:1 c:2 d:3 e:4 f:5 g:6 h:7 i:8. So if you say 2:5, it would be from c to e. Because in programming you dont count the last letter which is 5 you use the letter right before 5 to end it. Sorry its a bit confusing. But im 100% sure its right.

Answer Link
kittypower822
kittypower822 kittypower822
  • 05-11-2020

Answer:cde

Explanation:this is the correction on odyssey!!

Answer Link

Otras preguntas

Read the excerpt from “Broken Chain.” The chain snapped in another place and hit him when it popped up, slicing his hand like a snake’s fang. The descriptive la
City-State governments had a separation of church and state. TRUE OR FALSE
1. When singers are in unison, what should the music sound like?​
An object is moving at a speed of 20 m/s and has a kinetic energy of 10,000 J. What is the mass of the object?
The prime factorization of a number is 2x2x2x2x3x3 x5. What is the number?
which of the following is water habitat??a oceanb riverc laked pound​
f(x) = 4x + 5; {-2, - 1,0,1,2}
Which of the following was a cause of the decline of Rome?
what causes this natural pH level?
Ms. Jackson wrote the expression shown on the board and asked her class to find an equivalent expression. 3.25x + (-0.4y) + X+ -y 2 5 Enter the equivalent expre