Comandos não tão básicos de Python

lista de algumas solução interessantes

Jeito rebuscado de criar uma LISTA

Para criar uma lista de números pares com raiz quadrada perfeita:

>>> sqdEvens = [x ** 2 for x in range(8) if not x % 2]
[0, 4, 16, 36]

Switch-case em Python

resumo: usar uma busca de dicionário.

options = {0 : zero,
                1 : sqr,
                4 : sqr,
                9 : sqr,
                2 : even,
                3 : prime,
                5 : prime,
                7 : prime,

def zero():
    print "You typed zero.\n"

def sqr():
    print "n is a perfect square\n"

def even():
    print "n is an even number\n"

def prime():
    print "n is a prime number\n"




Funcao para gerar uma funcao simples de uma linha atraves de uma variavel.

um exemplo de uso:

>>> adicao3 = lambda x: x+3
>>> adicao3(5)


If you are interested in investing in virtual currency,
You may have heard of the ‘Binance’ exchange.

That’s because this exchange is currently the virtual currency exchange with the most users in the world.
Today, I would like to introduce a brief introduction of this exchange, the advantages you can feel, and even joining Binance.

​​바이낸스 레퍼럴


hello. Today’s post will tell you how to sign up for Binance’s maximum fee discount using a referral code that is easy to understand even for beginners.


I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work… Boostaro


The referral fee discount promotion is a must, not an option, because it offers a 20% discount on transaction fees. CoinViewer has officially partnered with Binance to provide a referral code with a 20% discount on transaction


Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though.