Re: [Tutor] Help on Python Looping Please

2011-02-24 Thread pyhx0r
Dear All, Thank you for your advise, it's helpful for me. NB: To DaveA, It was copy-paste from my notepad so the indentation went wrong :( +---+--+---+ | py | h | x0r | +---+--+---+ ■ 1 3 0 E2 C 9 ■ ___ Tutor maillist - Tutor@python.org To u

[Tutor] Help on Python Looping Please

2011-02-24 Thread pyhx0r
000)) Result: 1.0 TB 931.3 GiB I’ve shorted the code be: >>> SUFFIXES = {1000: ['KB','MB','GB'], 1024: ['KiB','MiB','GiB']} >>> multiple = 1000 >>> size = 2300 >>>