0

And the statement print(f'{numfraction:,.0f} is {fraction100}% of {num:,}') prints 15,000,000 is 50.0% of 30,000,000 because the , modifier instructs Python to use commas as thousands separators. We will introduce other modifiers as convenient later in the book.

How to understand "as convenient" here? What is the meaning of it?

1 Answer 1

2

It means that whenever there is a good opportunity to introduce a new concept, we will do so. We won't just bring in new modifiers randomly.

2
  • Thanks for your explanation. May I use when to repalce as? Or does as here mean when?
    – Jack
    Jan 8, 2023 at 22:39
  • As means when, yes. The two are interchangeable.
    – ILEM World
    Jan 9, 2023 at 2:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .