Python Morsels

1.5K posts

Python Morsels

Python Morsels

@PythonMorsels

Giving life-long learners a low-stress way to hone their #Python skills. 🐍🍪 Write beautiful code. ✨ Made by @treyhunner 💖

Entrou em Ocak 2018
5 Seguindo7K Seguidores
Tweet fixado
Python Morsels
Python Morsels@PythonMorsels·
Python Morsels gives professional developers a low-stress way to hone their Python skills, through weekly screencasts and exercises. 🐍🍪 It's not a course. And it's not for complete beginners. Try it out: pythonmorsels.com/all-python-exe… More details 👇 twitter.com/treyhunner/sta…
Trey Hunner@treyhunner

Looking for an excuse to deepen your #Python skills? I made @PythonMorsels for you. It's not an Intro to Python course. It's both not a course & includes topics well beyond introductory Python. Don't think "tennis class". Think "weekly tennis practice". 🎾 But for Python! 🐍

English
1
5
23
0
Python Morsels
Python Morsels@PythonMorsels·
You'll almost always see tuple unpacking used whenever enumerate is used. for n, fruit in enumerate(favorite_fruits, start=1): print(n, fruit) #Python pym.dev/looping-with-i…
English
0
1
3
319
Python Morsels
Python Morsels@PythonMorsels·
You don't need third-party libraries to read CSV files in #Python! Python's csv module includes helper functions for reading CSV files, tab-delimited files, and other delimited data files. 👀💻🔍 pym.dev/csv-reading/?u…
English
0
0
4
314
Python Morsels
Python Morsels@PythonMorsels·
"When we loop over a csv.reader object, the reader will loop over the file object that we originally gave it and convert each line in our file to a list of strings." 🔄💱 #Python pym.dev/csv-reading/?u…
English
0
0
6
324
Python Morsels
Python Morsels@PythonMorsels·
If we want to start counting at a different number, we can set the start keyword argument when calling enumerate. for n, fruit in enumerate(favorite_fruits, start=1): print(n, fruit) #Python pym.dev/looping-with-i…
English
0
0
4
263
Python Morsels
Python Morsels@PythonMorsels·
"If you'd prefer to think in terms of the headers in your file, rather than in terms of the indexes of each data column, you could use csv.DictReader instead of csv.reader." 📚 #Python pym.dev/csv-reading/?u…
English
0
0
3
264
Python Morsels
Python Morsels@PythonMorsels·
"Just like with reader objects, we can loop over DictReader objects to get the rows within our file. But unlike reader objects, instead of getting back lists representing each row, we'll get back dictionaries." #Python pym.dev/csv-reading/?u…
English
0
0
3
256