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

ChallengeChallenge

Tarefa

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.

Tudo estava claro?

Seção 2. Capítulo 11
toggle bottom row
course content

Conteúdo do Curso

Introduction to Python

ChallengeChallenge

Tarefa

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.

Tudo estava claro?

Seção 2. Capítulo 11
toggle bottom row
some-alt