...
| Value | Python Expression |
|---|---|
| Hexa decimal a1 | 0xa1 |
| 3.2e-12 | |
|
|
String
String concatenation by join()
Write the code for a Python function expand(x) that takes a list of strings, concatenates them, and returns the resulting string repeated three times.
| Info |
|---|
|
| Code Block |
|---|
def expand(x):
return ''.join(x) * 3 |
Basic Operators
Python Arithmetic Operators
...