Here is a countdown of my 5 best Python ๐Ÿ articles of the year ๐Ÿ‘‡๐Ÿงต

How many of them did you read?

mathspp.com/blog
Number 5.

There is my Pydon't article about Python ๐Ÿ's pass by value vs pass by reference vs pass by assignment behaviour.

๐Ÿ”— mathspp.com/blog/pydonts/pโ€ฆ
Number 4.

In 4th place is an article that I published less than a month ago, so it's quite cool that it got so much visibility.

It's an article in which I analysis multiple solutions to a programming challenge from Advent of Code.

๐Ÿ”— mathspp.com/blog/advent-ofโ€ฆ
Number 3.

Python has a series of built-ins that are just AMAZING, and this article is devoted entirely to one of those tools: `zip`.

With lots of examples of good usages of the built-in `zip`, this article was one of your favourites ๐Ÿ˜‰

๐Ÿ”— mathspp.com/blog/pydonts/zโ€ฆ
Number 2.

I'm very happy that this article is number 2.

It's an article that combines programming and maths in a cool way!

There is another anecdote about this article: in it, I implement an algorithm that I thought about for YEARS... Literally!

๐Ÿ”— mathspp.com/blog/counting-โ€ฆ
Number 1.

The article at the top is an article devoted entirely to one of the coolest features of Python 3.10: structural pattern matching.

My article teaches all about pattern matching and gives examples of good usages of this feature.

๐Ÿ”— mathspp.com/blog/pydonts/pโ€ฆ
In 2021 I wrote 90 articles on my blog.

For 2022, I want to keep up the pace, and devote more of my time to writing articles for you to enjoy and learn a lot of!

I trust you'll keep reading? ๐Ÿ˜‰

โ€ข โ€ข โ€ข

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

Keep Current with Rodrigo ๐Ÿ๐Ÿ“

Rodrigo ๐Ÿ๐Ÿ“ 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 @mathsppblog

31 Dec
Every day is a great day to start learning Python ๐Ÿ.

However, the new year is about to start.
Make good use of that extra motivation. ๐Ÿ’ช

Here is some of my best Python ๐Ÿ content to help you out:
Want to learn about list comprehensions?

I have a comprehensive thread and a free cheatsheet for you.

(๐Ÿ‘† see what I did there? My puns are fantastic!)

Here is the thread:

And here is the link to the free cheatsheet:

mathspp.gumroad.com/l/cheatsheet_lโ€ฆ
Read 12 tweets
25 Nov
I enjoy thinking about multiple possible solutions to the same Python ๐Ÿ problems.

I do!

Call me crazy ๐Ÿคช, I don't care!

In the past, I've tweeted simple challenges ๐Ÿ†, you tweeted solutions, and I wrote a thread analysing your solutions.

Here is a meta ๐Ÿงต of past challenges!
The first challenge I ever posted was to implement the Caesar cipher

This is the thread with the solutions ๐Ÿ‘‡

The moral of the story was that very little people know about the `str.maketrans` and `str.translate` methods.

Read 21 tweets
25 Nov
Want to boost your Python ๐Ÿ problem-solving skills?

I am looking for highly-motivated individuals that want to stay ahead of the curve!

If that's you, keep on reading ๐Ÿ‘‡...

Because tomorrow I'm launching the Python Problem-Solving Bootcamp!
This is a bootcamp focused on writing code.

Throughout the bootcamp you will solve 50 programming puzzles over the course of 25 days.

By going through the puzzles, you'll be practising your Python skills, and writing code is the best way to improve!

But there's more to it.
You will be getting 2 challenges/day.

Does that sound scary?

Good! If it does, then it's because it is an excellent growing opportunity.
Read 13 tweets
21 Nov
I have been tweeting about Python ๐Ÿ string formatting.

I have been preaching ๐Ÿ™ that f-strings are the best string formatting alternative.

Then comes the string method `.format`.

And only then, %-formatting.

Here is a thread ๐Ÿงต comparing the 3 ๐Ÿ‘‡
In its most basic form,

๐Ÿ‘‰ %-formatting uses % and a letter inside the string
๐Ÿ‘‰ `.format` replaces sequences of {} with the data
๐Ÿ‘‰ f-strings use {} to insert the data _inside_ the string

Here is how it looks like ๐Ÿ‘‡
An undervalued feature of string formatting is that you can easily determine whether your data should be formatted with its string (str) or with its representation (repr).

For debugging, `repr` is usually more useful.

Here is how this looks like ๐Ÿ‘‡
Read 10 tweets
6 Nov
The Python ๐Ÿ Standard Library is one of the reasons I love ๐Ÿ’™ Python.

๐Ÿ“‚๐Ÿ” dealing with your filesystem is super simple.

All you have to do is use the `pathlib` module.

This short thread is a mini `pathlib` cookbook ๐Ÿณ, showing some example usages of `pathlib`.

Ready ๐Ÿš€?
๐Ÿ“‚ Creating a `Path` object

`Path` objects are the bread and butter of `pathlib`.

Here, I just create a path with no arguments, which defaults to the path `.`

Notice how I used `Path` but I get a `WindowsPath` back.

`pathlib` automatically detects your OS ๐Ÿ˜‰
๐Ÿ“‚ Getting the parent

The `parent` attribute returns the logical parent of the path you have at hands ๐Ÿ‘‡
Read 11 tweets
5 Nov
๐Ÿ—“๏ธ the weekend is coming ๐Ÿฅณ

If you want, use it to rest! You deserve it!

Or, make this a memorable weekend:

Let this be the weekend you implement your first neural network ๐Ÿง  from scratch, in Python ๐Ÿ

Here's the roadmap ๐Ÿ›ฃ๏ธ

๐Ÿ‘‡๐Ÿงต
By the time you are done, you'll have

๐Ÿ‘‰ a minimal neural network framework
๐Ÿ‘‰ solved a ML problem with accuracy > 90%

And all this with a surprisingly short amount of code!
First, we start with an appetizer.

It will spark your interest, and acquaint you with some terminology.

Your appetizer is this amazing video by @3blue1brown ๐Ÿ‘‡

Read 9 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

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(