Hiro 714
asked on
Python question
I would like to get Warehouse ID from a string: sample.
Please advise.
Please advise.
sample = '-----\nWarehouse ID: ABC\nVendor ID: CDE\nVendor Name: DED\nMarketplace ID: E'
Expected:
WarehouseID=ABC
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
print(sample[:23])
Warehouse ID, would in this case have to be 3 characters max,