Great article, very handy and useful.
A simple suggestion to make it available for everyone, put the output after the input so people who don't know python or are starting with it, can know what to expect.
just an FYI, in the more current versions of Python, dictionaries ARE ordered. to get this functionality in older versions (3.5 or less i think) you can use orderedDict
also for file io, use keyword 'with' to auto close a file you are working on. so do 'with filename as f: ...' and after you are done working with the file, it will be closed
and if you are new to python, master comprehensions (like list and dict) and make use of lambdas
Very valuable. Thanks for your work!
Just one input from my side:
I usually try to avoid double-under functions:
Under Basic Usage of dictionaries, I'd prefer:
print("apple" in prices)
over
print(prices._ _ contains _ _("apple"))
But maybe that's just personal preference.
Otherwise great work!
I'm a Computer Science enthusiast with a keen interest in Maths. I like to tinker with things around me & practise Sahaja Yoga meditation. Do follow me on GitHub https://github.com/Aatmaj-Zephyr
Great article, very handy and useful.
A simple suggestion to make it available for everyone, put the output after the input so people who don't know python or are starting with it, can know what to expect.
Happy Coding!
Thanks Jorge, Will surely try to edit.
just an FYI, in the more current versions of Python, dictionaries ARE ordered. to get this functionality in older versions (3.5 or less i think) you can use orderedDict
also for file io, use keyword 'with' to auto close a file you are working on. so do 'with filename as f: ...' and after you are done working with the file, it will be closed
and if you are new to python, master comprehensions (like list and dict) and make use of lambdas
wow! This was awesome.
Can you make this available as a PDF to download?
It'll be helpful to people
I loved this
Thank you, Sure : mega.nz/file/77xWHTLa#eZOmhMEDrn_r...
Very valuable. Thanks for your work!
Just one input from my side:
I usually try to avoid double-under functions:
Under Basic Usage of dictionaries, I'd prefer:
print("apple" in prices)
over
print(prices._ _ contains _ _("apple"))
But maybe that's just personal preference.
Otherwise great work!
Very Handy... But there is a typo in while loop header (spelled as white loop).
Hey Thanks for telling! Fixed :)
Very useful for beginners. Thanks very much for your sharing.
Great job... This could really help me on my class
Superb! I will definately mention this in my Learning Python course
very useful.
thanks for your sharing