• Python magic, which will change your world of development

Hi, friends!

Today we present to your attention a popular Python course for free and a collection of Python tricks which at first may cause bewilderment, and at the same time we know that magic does not exist, we just need to dig a little deeper).

We believe, that even the most pumped seniors and senoritas will draw useful information for themselves!πŸ˜‰ So, here are those LINKS:

WTFpython - Sometimes, the outcomes of a Python snippet may not seem obvious at first sight. Here's a fun project attempting to explain what exactly is happening under the hood for some counter-intuitive snippets and lesser-known features in Python.

Amy Hanlon - Investigating Python Wats - PyCon 2015 - Many of us have experienced a "wat" in Python - some behavior that totally mystifies us. We'll look at three areas where wats arise - identity, mutability, and scope. For each of these three topics, we'll look at some common surprising behaviors, investigate the cause of the behaviors, and cover some practical tips on how to avoid related bugs.

The Python (3.10) Mega Course is now free on Udemy! - The Python Mega Course: Build 10 Real World Applications is one of the top courses on Udemy. Since it has recently been remaded to Python 3.11 version, the previous one (for 3.10) is now free!!

There are also two new missions this week for you to try your brains!

Not in Order by freeman_lex - Your function should return the number of elements, which are not at their places as if the list would be sorted ascending. For example, for the sequence 1, 1, 4, 2, 1, 3 the result is 3 , since elements at indexes 2, 4, 5 are not at their places as in the same sequence sorted ascending - 1, 1, 1, 2, 3, 4.

not_order([1, 1, 4, 2, 1, 3]) == 3
not_order([]) == 0
not_order([1, 1, 1, 1, 1]) == 0
not_order([1, 2, 3, 4, 5]) == 0

Replace with Biggest by freeman_lex - Replace every element in it with the biggest element among the elements to its strict right (not including current element). The last element should be replaced with -1.

list(replace_biggest([17, 18, 5, 4, 6, 1])) == [18, 6, 6, 6, 1, -1]
list(replace_biggest([1, 2, 3, 4, 5, 6])) == [6, 6, 6, 6, 6, -1]
list(replace_biggest([1, 1, 1])) == [1, 1, -1]

πŸ™Œ We are really interested in your thoughts! Please, leave a comment below! ‡

Welcome to CheckiO - games for coders where you can improve your codings skills.

The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.

Join the Game