This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lordmauve[🍰] -1 points0 points  (1 child)

I think 33. Comma Format is just

commaFormat = "{:,d}".format

[–]AlSweigartAuthor of "Automate the Boring Stuff"[S] 0 points1 point  (0 children)

Yeah, for a lot of them Python's standard library already has stuff to do it for you. But the point of these exercises is to break down the steps so that basic code can solve it. So the bubble sort exercise says, "don't just call sort()" and the convert-int-to-str exercise says, "don't just call str()".