Fatboy Slim

This is a note for python study.

The Lambda can use a function by one line code.

For example, below add function is two lines as below.

def add_up(x,y):
return x+y

We can re-write one line as below.

add_up = lambda x, y:x+y

The result is the same.

In recent months, I join the crypto investigation. Below is my crypto exchange list.

  1. Max exchange

If you use TWD, you can buy USDT and send them to other exchange to buy other coins such as BTC, ETH… This is for rookie.

Staking Max coin apy is 2% to…

Environment: Python 3.8

Key technique: str(), int()

Reversing an integer means to reverse all its digits.

  • For example, reversing 2021 gives 1202. Reversing 12300 gives 321 as the leading zeros are not retained.

Given an integer num, reverse num to get reversed1, then reverse reversed1 to get reversed2. Return true

Environment: Python 3.8

Key technique: for, [::-1]

Given an array of strings words, return the first palindromic string in the array. If there is no such string, return an empty string "".

A string is palindromic if it reads the same forward and backward.

Example 1:

Input: words = ["abc","car","ada","racecar","cool"]