I have a class
class Phone:
def __init__(self, brand, name):
self.brand = brand
self.name = name
phone = Phone("apple", "iphone3")
So I want to concatenate both data attributes to result like
"apple; iphone3"
I would like to avoid
phoneData = phone.brand + ";" + phone.name
Any ideas?
Thanks in advance
phoneData = phone.brand + ";" + phone.name?