Practice Problem is here

I don’t understand what I should do
1

@Maho,

Here we have a variable x of a float type. We want to obtain only the decimal part of it, i.e. we want to extract the whole part of x from this float value.

To obtain the whole part of x, we have just to convert it into the int type: int(x). Now, we can obtain only the decimal part of x using this code:

decimal = x - int(x)