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:

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