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ść:
- text = 'Python Safari'
- upper = text.upper()
- first_word = text[:6]
- print(first_word, upper)