только строки могут быть объединены в печатном stement < /p>
< /blockquote>
вот мой код: < /p>
Код: Выделить всё
class Board:
def __init__(x1,car,price):
x1.car=car
x1.price=price
def init1(x1):
print("They brought a car "+x1.car +"for rupees" x1.price) ### this is where I need the print of price .
y=Board("xylo",2000)
y.init1()
Они купили автомобиль Xylo для рупий 2000
< /blockquote>
Подробнее здесь: https://stackoverflow.com/questions/581 ... t-in-print