Informatics Practices

Assertion (A): In Python, integers are zero, positive or negative whole numbers without a fractional part.

Reasoning (R): -45, 655.55, -1000, 55.89 are the integer values in Python.

  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.

Python Funda

2 Likes

Answer

A is true but R is false.

Explanation
Integer represents whole numbers without any fractional part. They can be zero, positive or negative. -45, -1000 are the integer values in Python while 655.55, 55.89 are floating-point numbers.

Answered By

3 Likes


Related Questions