Apr-08-2020, 06:09 PM
Hi, I am trying to get the following columns to be formatted so that they are parallel instead of the numbers being off-centered from one another, and the second column needs to be formatted as money. I also need the total to be displayed in a parallel column at the bottom.
champs = ("Cubs 2016 World Series","Blackhawks 2015 Stanley Cup","White Sox 2005 World Series","Bulls 1998 NBA Championsip","Bears 1985 Super Bowl") tickprice = (4700,2200,1200,45,60) total = 0 count = 0 for element in tickprice: total = element + total count = 0 for thing in champs: print (thing, "${:>30.2f}".format(tickprice[count])) count = count + 1