Skills101
← All practice quizzes

Quiz: Python Strings

5 questionsNo time limitPass: 60%+10 XP on first pass

Work with text: indexing and slicing with a picture, the most useful string methods, checking and searching, and classic string interview programs.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What is "Skills101"[2:5]?

  2. Question 2

    What does "a,b,,c".split(",") return?

  3. Question 3

    What does this print?

    s = "hello"
    s.upper()
    print(s)
    
  4. Question 4

    What is "python"[-3:]?

  5. Question 5

    What does "banana".find("z") return?