0

split method

https://code.sololearn.com/cVCCM42LdGGv/#py even though i have \d sequence Y did I not get the numbers in the output list

11th Sep 2020, 11:18 AM
Mani
Mani - avatar
1 Réponse
+ 4
You need to use '\D' as separator so it will remove everything that's no a digit. Also if you'll use '\D+' then output is more appropriate.
11th Sep 2020, 11:28 AM
Vijay Raj Jain