Identify the correct output of the following Python Code: Str = 'Hello World!…

PYQ KVS TGT/PGT 2023

Identify the correct output of the following Python Code:

Str = 'Hello World! Hello India!'
Pos = Str.index('Hello')
print(Pos)
  1. A.

    0

  2. B.

    13

  3. C.

    [0, 13]

  4. D.

    (0, 13)

Attempted by 1782 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…