If the two values are both integers (whole numbers) you will normally get an integer (whole number) result in older Python environments. But, this book is using Python 3 so you get a decimal result.
1
This would be correct if the result was rounded up before the values after the decimal point were thrown away, but it does not do this.
0.75
While this isn’t the what older Python development environments would return, in this book we are using Python 3 so it returns a decimal result.
0.25
This would be correct if it was 1 / 4, 1.0 / 4, or 1 / 4.0