Pythonic News (@pythonicnews) profile picture

A social news aggregator for the #Python community

Joined October 2019
As you can see, the number 68 is in fact not that uncommon:
1
First, let's see how these cross-sums of dates are distributed between Jan 1, 1900, and Feb 24, 2022.
1
🇺🇦🐍 This picture is shared on Twitter. It insinuates that there is a conspiracy because a numbers game from the dates of the start of WW I and WW II yields 68 just like the date of the start of the war in Ukraine. Let's use Python to debunk this conspiracy theory
1
2
💡 A #Python Quiz 🐍 What will the type of x be? my_range = range(5) x = {*my_range} print(type(x))
💡 A #math puzzle with #Python: What's going on here? Integer division returns different results for positive and negative pairs. Can you explain why?
1
1
❓Do you know what this #Python code does? 💡Hint: If you have ever learnt something about #algorithm|s, this code should be like an old friend to you 🤔
1
2
‼️ Here is the solution: 🔥 ...but how does it work❓ If you remove 0 from the array, and append it, the 0 is moved to the end. Ok. But Why is this in a loop?
1
💡A small #Python #puzzle for your next #jobinterview: You have a list of integers - While keeping the relative order of the elements, move all zeroes to the end. Any idea how to solve this? 🔥
1
4
1
💡Did you know that the `key` argument to the `max` function can be a callable? And that you can find the word with the most repeating letter with just that little #Python code?
💡 How to check if a string contains emojis?
1
2
Python now has an ellipsis operator! Do you prefer the three dots over 'pass'?
9 Python Data Visualization Examples using Seaborn – discuss: news.python.sc/item/df6dd912… youtu.be/W_YUk8IvsqI
1