+ 2

In Python, if I print (1,000,000) then output comes like this 1 0 0 , please explain me why this output comes?

8th Dec 2021, 5:34 AM
Ankita
Ankita - avatar
3 Réponses
+ 6
Because here commas mean there are 3 separate numbers. So print outputs 1, then 000, and 000 separately
8th Dec 2021, 7:20 AM
Ivan Petriv
Ivan Petriv - avatar
0
Pieas give me100000 uc
7th Jan 2023, 7:25 AM
Isthaq Khan
Isthaq Khan - avatar
0
Please give me 100000uc
7th Jan 2023, 7:27 AM
Isthaq Khan
Isthaq Khan - avatar