Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

need help for python

Status
Not open for further replies.

God love us

Amateur
Advanced Member
Messages
134
Reaction score
0
Points
26
guys pa help naman gusto ko sana lumabas ang result sa window using tkinter, i mean yong di siya console

ito yong code.
Code:
class Car():
    def __init__(self,color, car_num):
        self.color = color
        self.xAxis = car_num
        self.yAxis = 60 - car_num
CarColor = ['Red','Yellow','Green','Blue','White']
CarList = []
car_num = 0#
for carColor in CarColor:
    car_num +=10 #
    CarList.append(Car(carColor, car_num))
for eachCar in CarList:
    print("Car:",eachCar.color,end=' ') 
    print("xAxis:",eachCar.xAxis,end=' ') 
    print("yAxis:",eachCar.yAxis,end='\n')
 
Status
Not open for further replies.
Back
Top Bottom