Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Negative Indexing | Strings
Python Data Types
course content

Conteúdo do Curso

Python Data Types

Python Data Types

1. Numeric Types
2. Boolean Type
3. Strings

Negative Indexing

Tarefa

You have such a string programming. You have to carry out these steps:

  1. print elements sliced till 8th element from last(as a result you have to get: pro)
  2. print elements sliced from index -8 to -3(as a result you have to get: grammi)
  3. print elements in reverse using slice operation(as a result you have to get: gnimmargorp).

Tarefa

You have such a string programming. You have to carry out these steps:

  1. print elements sliced till 8th element from last(as a result you have to get: pro)
  2. print elements sliced from index -8 to -3(as a result you have to get: grammi)
  3. print elements in reverse using slice operation(as a result you have to get: gnimmargorp).

Tudo estava claro?

Seção 3. Capítulo 7
toggle bottom row

Negative Indexing

Tarefa

You have such a string programming. You have to carry out these steps:

  1. print elements sliced till 8th element from last(as a result you have to get: pro)
  2. print elements sliced from index -8 to -3(as a result you have to get: grammi)
  3. print elements in reverse using slice operation(as a result you have to get: gnimmargorp).

Tarefa

You have such a string programming. You have to carry out these steps:

  1. print elements sliced till 8th element from last(as a result you have to get: pro)
  2. print elements sliced from index -8 to -3(as a result you have to get: grammi)
  3. print elements in reverse using slice operation(as a result you have to get: gnimmargorp).

Tudo estava claro?

Seção 3. Capítulo 7
toggle bottom row

Negative Indexing

Tarefa

You have such a string programming. You have to carry out these steps:

  1. print elements sliced till 8th element from last(as a result you have to get: pro)
  2. print elements sliced from index -8 to -3(as a result you have to get: grammi)
  3. print elements in reverse using slice operation(as a result you have to get: gnimmargorp).

Tarefa

You have such a string programming. You have to carry out these steps:

  1. print elements sliced till 8th element from last(as a result you have to get: pro)
  2. print elements sliced from index -8 to -3(as a result you have to get: grammi)
  3. print elements in reverse using slice operation(as a result you have to get: gnimmargorp).

Tudo estava claro?

Tarefa

You have such a string programming. You have to carry out these steps:

  1. print elements sliced till 8th element from last(as a result you have to get: pro)
  2. print elements sliced from index -8 to -3(as a result you have to get: grammi)
  3. print elements in reverse using slice operation(as a result you have to get: gnimmargorp).

Seção 3. Capítulo 7
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt