<s> from runtime import * <EOL> """<STR_LIT>""" <EOL> def main ( ) : <EOL> a = list ( range ( <NUM_LIT:10> ) ) <EOL> for v in a : print v <EOL> a [ <NUM_LIT:2> : <NUM_LIT:4> ] = '<STR_LIT:Y>' <EOL> print a <EOL> print '<STR_LIT>' <EOL> for v in a : <EOL> print v <EOL> assert ( a [ <NUM_LIT:0> ] == <NUM_LIT:0> ) <EOL> assert ( a [ <NUM_LIT:1> ] == <NUM_LIT:1> ) <EOL> assert ( a [ <NUM_LIT:2> ] == '<STR_LIT:Y>' ) <EOL> assert ( a [ <NUM_LIT:3> ] == <NUM_LIT:4> ) <EOL> assert ( a [ <NUM_LIT:4> ] == <NUM_LIT:5> ) <EOL> assert ( a [ <NUM_LIT:5> ] == <NUM_LIT:6> ) <EOL> assert ( a [ <NUM_LIT:6> ] == <NUM_LIT:7> ) <EOL> assert ( a [ <NUM_LIT:7> ] == <NUM_LIT:8> ) <EOL> assert ( a [ <NUM_LIT:8> ] == <NUM_LIT:9> ) <EOL> b = list ( range ( <NUM_LIT:3> ) ) <EOL> print b <EOL> c = b [ : <NUM_LIT:2> ] <EOL> print c <EOL> assert len ( c ) == <NUM_LIT:2> <EOL> assert ( c [ <NUM_LIT:0> ] == <NUM_LIT:0> ) <EOL> assert ( c [ <NUM_LIT:1> ] == <NUM_LIT:1> ) <EOL> print '<STR_LIT>' <EOL> print b <EOL> b [ : <NUM_LIT:2> ] = '<STR_LIT>' <EOL> print b <EOL> assert ( len ( b ) == <NUM_LIT:4> ) <EOL> assert ( b [ <NUM_LIT:0> ] == '<STR_LIT:A>' ) <EOL> assert ( b [ <NUM_LIT:1> ] == '<STR_LIT:B>' ) <EOL> assert ( b [ <NUM_LIT:2> ] == '<STR_LIT:C>' ) <EOL> assert b [ <NUM_LIT:3> ] == <NUM_LIT:2> <EOL> e = range ( <NUM_LIT:5> ) <EOL> print e <EOL> e [ <NUM_LIT:2> : <NUM_LIT:3> ] = '<STR_LIT:x>' <EOL> print e <EOL> assert e [ <NUM_LIT:2> ] == '<STR_LIT:x>' <EOL> d = list ( range ( <NUM_LIT:10> ) ) <EOL> d [ <NUM_LIT:2> : <NUM_LIT:4> ] = [ <NUM_LIT> , <NUM_LIT:100> ] <EOL> assert ( d [ <NUM_LIT:0> ] == <NUM_LIT:0> ) <EOL> assert ( d [ <NUM_LIT:1> ] == <NUM_LIT:1> ) <EOL> assert ( d [ <NUM_LIT:2> ] == <NUM_LIT> ) <EOL> assert ( d [ <NUM_LIT:3> ] == <NUM_LIT:100> ) <EOL> print d <EOL> main ( ) </s>
