hi all,
below is the code posted by me. I am getting the error of undefined token for the tabulate code while printing it in visual studio.
Kindly help with the modification.
#print(q,w)
below is the code posted by me. I am getting the error of undefined token for the tabulate code while printing it in visual studio.
Kindly help with the modification.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from tabulate import tabulate people_array = list () people = input ( "How many people ordered? " ) print ( "Enter people and their orders in list:" ) a = [] b = [] c = [] for i in range ( int (people)): p = str ( input ( "Person :" )) o1 = str ( input ( "Apple Cider ordered by" ,p, " :" )) o2 = str ( input ( "Apple juice orderd by" ,p, " :" )) a.append(p) b.append(o1) c.append(o2) print tabulate(a,b,c,headers = [ "Name" , "AC" , "AJ" ]) #print(a ,"\n", b ,"\n", c ,"\n") |