Jan-24-2018, 06:05 PM
(This post was last modified: Jan-24-2018, 06:05 PM by Barnettch3.)
Hello all -
Im occasionally running into a problem where Python will just ignore a formatting command, but the work fine on similar elements.
For example this part of the code is taking multiple lists and pretty printing them:
Im occasionally running into a problem where Python will just ignore a formatting command, but the work fine on similar elements.
For example this part of the code is taking multiple lists and pretty printing them:
Delivery_Type = [ "CMR - Construction Management at Risk", "DBB - Design Bid Build", "DB - Design Build", "MP - Multi-Prime", "IPD - Integrated Project Delivery,"] Fee_Type = "HOURLY", "HOURLY NTE", "FIXED FEE", "PERCENTAGE", "INVESTMENT", "PRO_BONO"] print(""" Time to look at the Project Delivery Method. Please choose from one of these: """) pp.pprint(Delivery_Type) Project_Delievery = input("What is the Project Delivery Type?: ").upper() print(""" Let's look at the FEE structure now. Please choose from one of these: """) pp.pprint(Fee_Type) Fee = input("What type of Fee will this project be?: ").upper()It runs fine except only one out of the several similar list wont print pretty, they all have the same formatting the same syntax the only thing different are the words used.
Time to look at the Project Delivery Method. Please choose from one of these: [ 'CMR - Construction Management at Risk', 'DBB - Design Bid Build', 'DB - Design Build', 'MP - Multi-Prime', 'IPD - Integrated Project Delivery,'] What is the Project Delivery Type?: a Let's look at the FEE structure now. Please choose from one of these: ['HOURLY', 'HOURLY NTE', 'FIXED FEE', 'PERCENTAGE', 'INVESTMENT', 'PRO_BONO'] What type of Fee will this project be?:I have another instance were I try to run a ceiling format command and it works for all but one.