Put in order · Python course · Module 1: Python Basics
Program with Strings
Order the text processing steps:
Items to put in order
- print(first_word, upper)
- upper = text.upper()
- first_word = text[:6]
- text = 'Python Safari'
Show the answer
Correct order:
- text = 'Python Safari'
- upper = text.upper()
- first_word = text[:6]
- print(first_word, upper)