0

I need to get input from user and stored it in array. For Example, if user input is like python,Html,css or python html css or python/html/css. I have to stored it in array like a[0]=python; a[1]=html; a[2]=css; it should neglect comma(,) and whitespaces and slash(/)

georg
  • 211,518
  • 52
  • 313
  • 390
Karthik
  • 57
  • 1
  • 1
  • 6

1 Answers1

0

Sounds like you're trying to simply process a string into a list with multiple delimiters. A quick search revealed another similar StackOverflow question which may lead to an answer.

You might be able to accomplish what you're looking for with the "re.split()" function.

https://stackoverflow.com/a/4998688/1011998

Community
  • 1
  • 1
Tim Selaty Jr.
  • 599
  • 4
  • 6