Run this code and take a photos of code and the output on python
from prettytable import PrettyTable
table = PrettyTable()
table.field_names = ["pokemon name", "type"]
table.add_row(["pikachu", "Electric"])
table.add_row(["sydney", "Dark"])
table.add_row(["charmander", "Fire"])
table.add_row(["squite", "Water"])
print(table)
The answer to your question is provided in the image:
Comments
Leave a comment