def very_long_name_func(x):
return x * 2
def func(x, y, z):
return x + y + z
f = lambda i: (
x := very_long_name_func(i),
func(x, x, x)
)[-1]
for n in map(f, range(10)):
print(n)
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme