Q:

Does Python have a whole number data type?

I have a question: Does python have a whole number data type> Unlike integers and floats, whole numbers are non-negative (0 to infinity). Does python have a data type declaration for that?

A:

No, it doesn't have such a number as a native type. You could use int, and just never store a negative number. Or you could create your own type and limit its value in its methods.

