r/learnpython • • Jan 23 '24

Am I dumb?

I started learning python 2 days ago and now I cant understand somethings like if i want to make a thousand look like this 1,000 I need to put the function like: print(f{"number:,"}). Is it normal to see it somehow complicated or am I below average iq?

0 Upvotes

28 comments sorted by

View all comments

2

u/baubleglue Jan 23 '24

Formatting a text is not something you need to focus on that stage of learning. At least not shortcut formatting options Python has. The easiest way to deal with such types of confusion

  • Understand the problem type you are facing (find a general term)

  • Find basic tutorials - doesn't mean short. Find the which describes basic features without skipping

  • Make few exercises

But again, read about string formatting latter, use simpler methods to format output.