The split()
method is useful in cases like this. You can split first on /
, and then split the resulting elements on ,
.
line = '1,2,3/4,5,6/7,8,9,10/11'
[x.split(',') for x in line.split('/')]
* Be the first to Make Comment
Suson Men Synthetic Lace Up Formal/Office/Casual/Derby Shoes
Underwear Comfortable fit Throughout Pregnancy
Sillyboom Maternity Boy Peeking T-Shirt for Pregnant Women
Van Heusen Women's Cotton Printed Anti-Bacterial Bikini (Pack of 3)
Croma 1 Ton 3 Star Split Fixed Speed AC (Copper, Blue Fins, PM 2.5 Filter with activated carbon, R-32 Green Refrigerant, 2022 Model, 5 Years Compressor Warranty, CRAC7721, White)
SHOWTIME Gift for Husband Special Romantic Gift for Wife
Van Heusen Antibacterial Non Padded Non Wired Slim Fit Cotton Bra
Livpure Smart Solid Window Polyester 5 feet Curtains with tieback( Beige ) Set of 2
ZISAAN Latest Striped Sleeve[Less Summer Gift TOP for Women & Girls (Blue, Small)
SBAPRIME 3pcs-Set Men's Gift Set Men and Boys Watch, Cap & Sunglasses Combo Set Birthday Present