Simulated Coffee Machine with OOP!
Add GIF demo
This commit is contained in:
parent
2cb3f14710
commit
f462cc5ae0
9 changed files with 167 additions and 2 deletions
21
Day 16/main.py
Normal file
21
Day 16/main.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue