input().strip().split(' ') | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

input().strip().split(' ')

what does input().strip().split(' ') in python means??

18th Aug 2017, 12:10 PM
Priyanshu Shekhar Sinha
Priyanshu Shekhar Sinha - avatar
1 Answer
+ 5
input() - takes input from user strip() - deletes white spaces from the begin and the end of input split(' ') - splits input into elements of an list with (' ') being as separator.
18th Aug 2017, 12:27 PM
Jakub Stasiak
Jakub Stasiak - avatar