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

Завдання

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.

Все було зрозуміло?

Секція 2. Розділ 11
toggle bottom row
course content

Зміст курсу

Introduction to Python

Challenge

Завдання

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.

Все було зрозуміло?

Секція 2. Розділ 11
toggle bottom row
some-alt