0

Can anyone tell me how to print out numbers separately from a string.

For eg: I entered the input as "abc123" and I want the input to print 123 separately.

21st Nov 2020, 3:10 PM
zeeshan
zeeshan - avatar
2 Answers
+ 4
TheWh¡teCat 🇧🇬 , i am sure you agree that giving a ready-to-use code does not help a lot in developing the coding ability of poeple. It is a good practice to give hints or may be a line of code. Thanks for your understanding!
21st Nov 2020, 4:50 PM
Lothar
Lothar - avatar
+ 3
zeeshan , you can use isdigit method or match the digits with regex. https://code.sololearn.com/ch0z6bjHpAAH/?ref=app
21st Nov 2020, 3:21 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar