class Bank: def __init__(self): pass def collect_input(self): name = input("What is your name: ") age = input("What is your age: ") interests = [] for i in range(3): interest = input(f"What is your number {i} interest: ") interests.append(interest) interests_string = ", ".join(interests) return f"Your name is {name} and you are {age} years old with interests in {interests_string}" bank = Bank() bank.collect_input()