C
de
S
pace
Explore
Log In
Explore
Sign Up
Log In
taylorlarsson881
22.05.2026 12:04
0
Text analysis
Ideas welcome
data.py
import random def gen_password(length=12): chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%" return "".join(random.choice(chars) for _ in range(length)) print(gen_password())
main.py
def flatten(lst): result = [] for item in lst: if isinstance(item, list): result.extend(flatten(item)) else: result.append(item) return result print(flatten([1, [2, [3, 4]], 5]))
Idle
Try It
Clear
Log in
to leave a comment
Are you sure you want to delete this post?
Delete
Cancel