In Python, a function may contain default arguments. According to Python’s…

PYQ EMRS TGT/PGT (ESSE) 2025

In Python, a function may contain default arguments. According to Python’s syntax rules, which of the following function headers (prototypes) correctly defines a function with default arguments?

  1. A.

    def SimpleInterest(P=100, R, T):

  2. B.

    def SimpleInterest(P, R=10, T):

  3. C.

    def SimpleInterest(P, R, T=1):

  4. D.

    def SimpleInterest(P=100, R, T=1):

Attempted by 882 students.

Sign up free to check your answer

Sign up free

Explore the full course: Emrs Cs Tier 2

Loading lesson…