Contenido del Curso
Python Data Types
Python Data Types
Negative Indexing
Tarea
You have such a string programming
.
You have to carry out these steps:
- print elements sliced till 8th element from last(as a result you have to get:
pro
) - print elements sliced from index -8 to -3(as a result you have to get:
grammi
) - print elements in reverse using slice operation(as a result you have to get:
gnimmargorp
).
Tarea
You have such a string programming
.
You have to carry out these steps:
- print elements sliced till 8th element from last(as a result you have to get:
pro
) - print elements sliced from index -8 to -3(as a result you have to get:
grammi
) - print elements in reverse using slice operation(as a result you have to get:
gnimmargorp
).
¿Todo estuvo claro?
Negative Indexing
Tarea
You have such a string programming
.
You have to carry out these steps:
- print elements sliced till 8th element from last(as a result you have to get:
pro
) - print elements sliced from index -8 to -3(as a result you have to get:
grammi
) - print elements in reverse using slice operation(as a result you have to get:
gnimmargorp
).
Tarea
You have such a string programming
.
You have to carry out these steps:
- print elements sliced till 8th element from last(as a result you have to get:
pro
) - print elements sliced from index -8 to -3(as a result you have to get:
grammi
) - print elements in reverse using slice operation(as a result you have to get:
gnimmargorp
).
¿Todo estuvo claro?
Negative Indexing
Tarea
You have such a string programming
.
You have to carry out these steps:
- print elements sliced till 8th element from last(as a result you have to get:
pro
) - print elements sliced from index -8 to -3(as a result you have to get:
grammi
) - print elements in reverse using slice operation(as a result you have to get:
gnimmargorp
).
Tarea
You have such a string programming
.
You have to carry out these steps:
- print elements sliced till 8th element from last(as a result you have to get:
pro
) - print elements sliced from index -8 to -3(as a result you have to get:
grammi
) - print elements in reverse using slice operation(as a result you have to get:
gnimmargorp
).
¿Todo estuvo claro?
Tarea
You have such a string programming
.
You have to carry out these steps:
- print elements sliced till 8th element from last(as a result you have to get:
pro
) - print elements sliced from index -8 to -3(as a result you have to get:
grammi
) - print elements in reverse using slice operation(as a result you have to get:
gnimmargorp
).