Pps Code
Pps Code
Output:
Code:
class cars():
def __init__(self,modelname,price):
self.modelname = modelname
self.price = price
honda = cars('city', 900000)
tata = cars('tigor', 800000)
# Driver code
if __name__ == "__main__":
# create a GUI window
gui = Tk()
# set the background colour of GUI window
gui.configure(background="light green")
# set the title of GUI window
gui.title("Simple Calculator")
Output: