Python Programming – Print A Float with Two Decimal Places

preview_player
Показать описание
Hi, in this video we will solve the following exercise: “Write a python program that receives one float number from the user and print the number with two decimal places.”

The code for the exercise and the exercise list can be found on:

#Python #Programming

If you have any suggestions for a python exercise to be solved, use the comments.

Thanks.

Комментарии
Автор

Thank you for this!
My class didn’t show, or at least point out, how to have multiple zeros in decimals, and since it automatically just rounds down to a single zero without this expression, I was stuck for an hour on an assignment doing trial and error. So eventually I just started searching and finally found this video.

DMGSL
Автор

how do you do this without it rounding up

adamemin