PRG-105: Formatting Currency in Python

preview_player
Показать описание
Formatting numeric output to display in a standard currency format in Python.

View an annotated PDF transcription of the video:
Рекомендации по теме
Комментарии
Автор

Thank you, quick tidy explanation, I like these 60sec tutorials

dr_frankenmiller
Автор

Thank you, you save me. To be honest I was doing a project and the only thing I was not able to accomplish was formatting currency. I immediately learn how to do it when I first saw your example code.
Thank you again.

mofrtyw
Автор

Seriously couldn't find anything to help me until I found your video! Thank you!

paleofemme
Автор

Thanks! This is great. What course are you referring to? This video popped up on a google search.

relax
Автор

Thanks for your help Meri! Please keep making videos like this.

angelomermigis
Автор

Great explanation. However, what if I wanted to use periods as thousands separator and commas as decimal ?

RubenQuijada
Автор

Did you test your program? It didn't work for me (I'm using Python 3).

unclelizard
Автор

Thank you, this helped me. Was struggling before with this and I kept getting errors.

nemesi
Автор

Very clear on how to add a $ that is left justified (e.g., $ 2.30, $ 234, 590.09). However, most clean displays of currency places the $ sign just to the left of the left most digit (e.g., $2.30, $234, 590.09). Python has no way to place the dollar sign in the clean looking location of a dollar amount.

revellights
Автор

you saved me couldnt figure out how to add $ sign

korene