Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge | Variables and Types
Introduction to Python

Challenge

Tarea

You're given the string "This is string for learning" stored in the variable test_str. Your tasks are to:

  1. Retrieve and display the first character of the test_str (using the first print() function).
  2. Retrieve and display the last character of the test_str (using the second print() function).
  3. Retrieve and display the word string from the test_str variable.

¿Todo estuvo claro?

Sección 2. Capítulo 11
toggle bottom row
course content

Contenido del Curso

Introduction to Python

Challenge

Tarea

You're given the string "This is string for learning" stored in the variable test_str. Your tasks are to:

  1. Retrieve and display the first character of the test_str (using the first print() function).
  2. Retrieve and display the last character of the test_str (using the second print() function).
  3. Retrieve and display the word string from the test_str variable.

¿Todo estuvo claro?

Sección 2. Capítulo 11
toggle bottom row
some-alt