'Python Pretty tables not accepting variables for column names
I am writing a Python program that needs to change the number of columns in a array before it can be used, Specifically it needs to Ask if another column is wanted and then in numerical order add the columns. The reason it must be in numerical order is to simplify programing further down the line.
The issue is a swarm of error messages that appear when trying to label a column with a variable rather than a string.
An example bellow of the code:
aCtive_Input_1 == input("Debug2:")
mAin_Array.field_names = ["Number","Name","Team","Score","1","2","3"]
mAin_Array.add_column(aCtive_Input_1,[""])
Here is an example of the Error message output
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|