Avatar of Hiro 714
Hiro 714

asked on 

Python question

I would like to get Warehouse ID from a string: sample.
Please advise.

sample = '-----\nWarehouse ID: ABC\nVendor ID: CDE\nVendor Name: DED\nMarketplace ID: E'
Expected:
WarehouseID=ABC

Open in new window


Python

Avatar of undefined
Last Comment
Subodh Tiwari (Neeraj)

8/22/2022 - Mon