Skip to content

Conversation

@rutvikna
Copy link
Contributor

Made the code more compact by iterating through a dictionary. The line the dictionary and print the file size in Bytes, Kilobytes, Megabytes and Gigabytes.

Made the code more compact by iterating through a dictionary. The line the dictionary and print the file size in Bytes, Kilobytes, Megabytes and Gigabytes.
Replaced the list with a dictionary. The order is lost ( because of the dictionary) but the info is displayed better in my opinion.
geekcomputers added a commit that referenced this pull request Feb 22, 2016
@geekcomputers geekcomputers merged commit d43cfce into geekcomputers:master Feb 22, 2016
@geekcomputers
Copy link
Owner

Thanks very much

Regards
Craig

On 22 Feb 2016, at 16:52, Rutvik Narayana Nadimpally [email protected] wrote:

Made the code more compact by iterating through a dictionary. The line the dictionary and print the file size in Bytes, Kilobytes, Megabytes and Gigabytes.

You can view, comment on, or merge this pull request online at:

#39

Commit Summary

Update folder_size.py
File Changes

M folder_size.py (22)
Patch Links:

https://github.com/geekcomputers/Python/pull/39.patch
https://github.com/geekcomputers/Python/pull/39.diff

Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants