Question: What's the difference between these datatypes: float and integer? an integer contains a whole number ( like 1 or 1 0 0 ) and a

What's the difference between these datatypes: float and integer?
an integer contains a whole number (like 1 or 100) and a float contains a
fractional or decimal number (like 0.50 or 3.33)
a float contains a whole number (like 1 or 100) and an integer contains a
fractional or decimal number (like 0.50 or 3.33)
Integers are used in Python, but not floats
Floats are used in Python, but not integers
What's the difference between these datatypes:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!