Made an epic showcase website and API!
This commit is contained in:
parent
9e21e4dbdd
commit
1907fad7c5
89 changed files with 36444 additions and 3 deletions
21
projects/Day 16/main.py
Normal file
21
projects/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