What will be the output of the following Python code snippet? STR = "It is…

PYQ EMRS TGT/PGT (ESSE) 2025

What will be the output of the following Python code snippet?

STR = "It is still a test"

print(STR.split('t', 3))

  1. A.

    ['I', ' is s', 'ill a test']

  2. B.

    ['I', ' is s', 'ill a ', 'es']

  3. C.

    ['I', ' is s', 'ill a ', 'est']

  4. D.

    ['I', ' is s', 'ill a ', 'es', '']

Attempted by 466 students.

Sign up free to check your answer

Sign up free

Explore the full course: Emrs Cs Tier 2

Loading lesson…