If S='python language' is a Python string, which of the following command will…

PYQ KVS TGT/PGT 2023

If S='python language' is a Python string, which of the following command will display the following output with 'P' in upper case and remaining in lower case ?

  1. A.

    print(S.upper())

  2. B.

    print(S.title())

  3. C.

    print(S.capitalize())

  4. D.

    print(S.sentence())

Attempted by 2082 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…