learning-python (23 Part Series)
The following are notes and details recapping a past live stream where we live code together. The idea behind these streams is that they provide real-world examples of running into problems and solving them or working towards solving them live.
✔ Warm up/Catch up with chat
✔ Today's coffee mug
✔ Recap last Python stream
✔ Learn about Tuples, Sets and Dictionaries
✔ Closing and raid @twilio
- We learned about Tuples and Sets but did not get to Dictionaries
- Discussion on pronunciation for Tuple
- .count() on a tuple will determine the number of occurrences for a value within the tuple
- Tuples can have nested tuples within them
- An integer in parenthesis is evaluated/interpreted as a mathematical operation so in order to make it a tuple add a trailing comma. This is regarding Tuples with a single item in them.
- We can use sets to get single instance of items in a collection. Example: converting a list of strings with items that have the same value we can convert it to a set which will get rid of duplicates
- Coconut water is good
- One, Honest Water, VitaCoco
- Drink water before having coffee
- Finish the Advanced Container Type section learning about Dictionary types
- PR for fix issue in Tuples section: "can be used considered to contain a snapshot of data."
- PR for fix of **can't in Tuples "Creation" section
- Our Code Repository
- Nina Zakharenko's course we're following: Learn Python
- Python Cheat Sheet
- Microsoft Developer's Python for Beginners
Clips are a feature on Twitch that let you cut and capture segments of the live stream in the moment (up to 60 seconds). See how to use clips on Twitch for more details. The following are some fun moments captured from this stream:
Professional Streamer Here
- I love brussel sprouts... when they're mixed with bacon!
Links not working on Twitch? It's most likely because Twitch will only save my stream recordings for about 60 days. Use the YouTube link at the top of this page instead.
The timestamps link to the video on Twitch at that point in the recording. If you'd like the YouTube link above will have similar timestamps and link to those same points in the recording as well.
|00:07:49||Kick it off|
|00:09:04||Use to add bookmarks (created by @roberttables)|
|00:14:46||Tuples definition (created by @ObsidianTalon)|
|00:19:30||What are followers and subscribers on Twitch?|
|00:23:19||Discussion around coffee, water, drinks, etc.|
|00:48:41||Start of learning code for Tuples, Sets and Dictionaries|
|00:54:31||Can we mix types contained in a tuple?|
|01:02:10||Coding Tuples and experimenting with them|
|01:09:12||Immutable vs. Mutable|
|01:21:43||Trying to make one item tuple with integers|
|01:50:15||Break (created by @Yegnaro)|
|02:04:00||Back from break and Stretch exercise (created by @Yegnaro)|
|02:06:53||Begin learning about Sets in Python|
|02:16:50||Experimenting with Sets in code|
|02:34:50||How to sort Sets|
|02:39:05||Available operations for Sets and the difference between them: union, intersection and difference|
|02:47:56||Recap, wrap up and raid @Twilio|
Thanks for reading this article. If you're interested in finding more content from Microsoft Cloud Advocates check out this monthly curated newsletter: Developer Community Newsletter