CBSE Class 12 Computer Science Question 111 of 120

Review of Python Basics — Question 6

Back to all questions
6
Question

Question 6

The % (modulus) operator cannot be used with the float data type.

Answer

False

Reason — The % (modulus) operator can be used with float data types in Python. It calculates the remainder of a division operation, just like with integers.