Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to take space separated input in python

_input = input() # Get input
_input = "thing1 thing2, thing3"
space_split = _input.split() # ["thing1", "thing2,", "thing3"]
comma_split = _input.split(",") # ["thing1 thing2", "thing3"]
Source by tutorial.eyehunts.com #
 
PREVIOUS NEXT
Tagged: #space #separated #input #python
ADD COMMENT
Topic
Name
8+4 =