You are viewing a single comment's thread. Return to all comments →
ur code will not work if all the no in the list is same
strip() returns a copy of the string in which all chars have been stripped from the beginning and the end of the string, right? But lis = list(map(int, raw_input().split()))[:i] is OK, the code still works well, because we have split().
Did u try it?