I have a list:
BMW.blue
VW.red
AUDI.blue
I used re.search to get all blue cars
BMW.blue
AUDI.blue
How do I use split to get only the cars without the dotColour:
BMW
AUDI
(without specifing the cars, as the list changes depending on the cur dir)
BMW.blue
VW.red
AUDI.blue
I used re.search to get all blue cars
BMW.blue
AUDI.blue
How do I use split to get only the cars without the dotColour:
BMW
AUDI
(without specifing the cars, as the list changes depending on the cur dir)
Comment