Python Basics: Numbers and Math (Quiz)

Avatar image for Francisco Martínez B

Francisco Martínez B on July 30, 2023

Easy!

Avatar image for Janos Antal

Janos Antal on Dec. 19, 2023

Seriously the whole course had like 5 quiz questions and nothing else ? After the 4th course of RealPython I’m getting really disappointed.

Avatar image for m4773n

m4773n on Jan. 6, 2024

@Janos Antal There is also a practical part: Python Basics Exercises: Numbers and Math

Avatar image for emmanuel

emmanuel on Sept. 30, 2024

Hello, I found this course interesting. I heard the float type was not very precise but your demontration of 0.1+0.2 convinced me. I did not quite understand the use of decimals in practical terms as an alternative to float, that’s the only thing i missed here.

Avatar image for Robert Bruntz

Robert Bruntz on Dec. 16, 2024

The quiz explains // as “Integer or floor division, divides the left operand by the right operand then rounds the result to the nearest whole number”, but like in the ‘Arithmetic Operators and Expressions’ module, this is incorrect. It should say “rounds the result down to the nearest whole number”. I added a comment in that module, but briefly:

>>> 99/100
0.99
>>> 99//100
0

Become a Member to join the conversation.