Ułóż w kolejności · Kurs Python · Moduł 1: Podstawy Pythona

Program ze stringami

Uporządkuj kroki obróbki tekstu:

Elementy do ułożenia

  • print(first_word, upper)
  • upper = text.upper()
  • first_word = text[:6]
  • text = 'Python Safari'
Pokaż odpowiedź

Poprawna kolejność:

  1. text = 'Python Safari'
  2. upper = text.upper()
  3. first_word = text[:6]
  4. print(first_word, upper)