Published
- 1 min read
prettytable python
The solution for this is noted below
prettytable python
Solution
from prettytable import PrettyTable
PTables = PrettyTable()
PTables = PrettyTable()
PTables.field_names = ["Selection No.", "Weapon Name", "Damage"]
PTables.add_row(["0", "Fist", "1 dp"])
PTables.add_row(["1", "Knuckle Busters", "2.5 dp"])
PTables.add_row(["2", "Cheap Knife", "5 dp"])
PTables.add_row(["3", "Wooden Baton", "6 dp"])
print(PTables)
Try other methods by searching on the site. That is if this doesn’t work