Informatics Practices

Assertion (A): Python is a dynamically typed language.

Reasoning (R): Python interpreter assigns variables a data type at runtime based on the variable's value at that time.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

Getting Started

2 Likes

Answer

Both A and R are true and R is the correct explanation of A.

Explanation
Python is a dynamically typed language because variables do not need to be declared with a specific type. Instead, the type of a variable is determined at runtime based on the value assigned to it.

Answered By

1 Like


Related Questions