Answers for "how to put space after an input in python"

2

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"]
Posted by: Guest on August-23-2020
0

how to add space between inputs in a text file python

f.write(name) 
f.write(" ")
f.write(score)
Posted by: Guest on February-12-2021

Code answers related to "how to put space after an input in python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language