Python 3.9 🐍 is out! 🥳

Here are the 5 new features you care about.

🧵👇
1⃣ Merging dictionaries

There's a new operator "|" that can be used to merge two dictionaries.

See PEP 584 for more information: python.org/dev/peps/pep-0…

👇 Image
2⃣ Updating dictionaries

Another new operator "|=" will let you update dictionaries.

See PEP 584 for more information: python.org/dev/peps/pep-0…

👇 Image
3⃣ Removing the prefix and suffix of a string

There are two new methods added to the str object to remove the prefix and suffix of the string.

We don't need to rely anymore on a much more fragile approach like slicing to do this.

For more info: python.org/dev/peps/pep-0…

👇 Image
4⃣ Type hinting for built-in generic types

You can now use list or dict built-in collection types as generics in the signature of a function.

This makes the code much more readable and explicit.

More information: python.org/dev/peps/pep-0…

👇 Image
5⃣ Python is now using a new parser

Why do you care? Well, this parser is much more flexible than the old one, and it will pay off dividends starting with Python 3.10.

More information here: python.org/dev/peps/pep-0…

👇
There are many other changes and improvements. This includes new modules and several fixes across the language.

You can take a look at the full release notes here: docs.python.org/3.9/whatsnew/3…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Santiago 🎃

Santiago 🎃 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @svpino

7 Oct
Want to hear a secret?

Regardless of your experience, here is an area of Machine Learning where you can have a huge impact:

▫️ Feature Engineering ▫️

It sounds fancy because people love to complicate things, but let's make it simple: 🧵👇 Image
In Machine Learning we deal with a lot of data.

Let's assume we are working with the information of the passengers of the Titanic.

Look at the picture here. That's what our data looks like.

The goal is to create a model that determines whether a passenger survived.

👇 Image
Each one of the columns of our dataset is a "feature."

A Machine Learning algorithm will use these "features" to produce results.

"Feature engineering" is the process that decides which of these features are useful, comes up with new features, or changes the existing ones.

👇
Read 14 tweets
6 Oct
I don't have proof, but I have empirical evidence that this is true:

▫️The outcome of a pair programming session is directly proportional to each developer's capacity to challenge each other.

Let me explain: 🧵👇
If you pair 2 developers with very different seniority levels, the session will become more of a training opportunity for the least senior person.

The short-term impact on the project will be negligible. Most of the ideas and progress will come from the senior person.

👇
If you pair two developers with a similar experience, their contributions multiply, giving you a much larger short-term impact.

You aren't getting ideas from one or the other anymore. You are getting a polished version that's better than any idea individually.

👇
Read 4 tweets
6 Oct
There are different categories of Machine Learning problems:

▫️Supervised Learning
▫️Unsupervised Learning
▫️Semi-supervised Learning
▫️Reinforcement Learning

This is a quick introduction to each one of them: 🧵👇 ImageImage
1⃣ Supervised Learning

🔹We train an algorithm using labeled data. This means that we give it the "questions" and the correct "answers."

The goal is for the algorithm to learn the concepts, so it can later answer similar questions.

👇
An example of Supervised Learning:

Given a dataset with pictures of different dogs and their breed, we can use a classification algorithm to determine the breed of new pictures of dogs.

Noticed how here we are getting labeled data (picture + breed.)

👇
Read 14 tweets
5 Oct
Some applications of Machine Learning:

▫️Ranking
▫️Recommendation
▫️Classification
▫️Regression
▫️Clustering
▫️Anomaly Detection

Here is a 3-second description of each one them: 🧵👇
1⃣ Ranking

🔹 Help your users find the most relevant items they are looking for.

For example, Google's algorithm to rank search results when a user searches for something combines multiple signals to offer the best results: your location, interests, past searches, etc.

👇
2⃣ Recommendation

🔹 Give your users the items they may be most interested in.

For example, Netflix's recommendation system to suggest what to watch based on your preferences, genre watch time, ratings, location, etc.

👇
Read 8 tweets
4 Oct
My recommendations for your first 30 days of Python 🐍.

🧵👇
I get many messages, and the most frequent question by far is, "How do I start with Python?"

There are multiple ways. Every one as valid as the one before.

Here is my way. These are my recommendations.

👇
1⃣Before anything else, remember that you need to make a commitment and be consistent.

Dedicate time to learn every day. It doesn't matter how much. Find a time that works for you.

The hashtag #100DaysOfCode is a great way to share your progress and stay accountable.

👇
Read 11 tweets
3 Oct
27 lessons in Machine Learning for Computer Vision. ~5 minutes each.

For free!

In a month from today, your future might look very different!

Here are the important details: 🧵👇
I'll go through the lessons myself. One every day, and I'll report my progress using the #MLU hashtag.

This is the first lesson, so welcome to Day 1 of #MLU! Feel free to follow along.

👇
Amazon decided to create a YouTube channel full of Machine Learning content from its internal "ML University."

Available to everyone!

I'm taking the Computer Vision course. Most lessons are around 5 minutes (with a few exceptions.)

Channel: youtube.com/channel/UC12Lq…

👇
Read 8 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!