how to swuare in python code example
Example 1: python square number
## Two ways to square the number x
x ** 2
# Returns: 9
pow(x, 2)
# Returns: 9
Example 2: swtich statement python
def f(x):
return {
'a': 1,
'b': 2,
}[x]