+ 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 Resposta
+ 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