Simulated Coffee Machine with OOP!

Add GIF demo
This commit is contained in:
rzmk 2021-08-06 18:01:35 -04:00
parent 2cb3f14710
commit f462cc5ae0
9 changed files with 167 additions and 2 deletions

21
Day 16/main.py Normal file
View file

@ -0,0 +1,21 @@
# from another_module import another_variable
# print(another_variable)
# from turtle import Turtle, Screen
# buddy = Turtle() # creating class object
# print(buddy)
# buddy.shape("turtle") # calling class methods
# buddy.color("blue")
# buddy.forward(100)
# my_screen = Screen()
# print(my_screen.canvheight) # getting class attribute
# my_screen.exitonclick()
from prettytable import PrettyTable
table = PrettyTable()
table.add_column("Pokemon Name", ["Pikachu", "Squirtle", "Charmander"])
table.add_column("Type", ["Electric", "Water", "Fire"])
table.align = "l"
print(table)