<s> from runtime import * <EOL> '''<STR_LIT>''' <EOL> def main ( ) : <EOL> a = [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> ] <EOL> y = <NUM_LIT:0> <EOL> for x in a : <EOL> y += x <EOL> assert ( y == <NUM_LIT:6> ) <EOL> z = '<STR_LIT>' <EOL> arr = [ '<STR_LIT:a>' , '<STR_LIT:b>' , '<STR_LIT:c>' ] <EOL> for v in arr : <EOL> z += v <EOL> assert ( z == '<STR_LIT:abc>' ) <EOL> b = False <EOL> if '<STR_LIT:a>' in arr : <EOL> b = True <EOL> assert ( b == True ) <EOL> s = '<STR_LIT>' <EOL> z = '<STR_LIT>' <EOL> for char in iter ( s ) : <EOL> z += char <EOL> assert ( z == '<STR_LIT>' ) <EOL> b = False <EOL> if '<STR_LIT:hello>' in s : <EOL> b = True <EOL> assert ( b == True ) <EOL> print '<STR_LIT>' <EOL> ob = { '<STR_LIT:a>' : '<STR_LIT:A>' , '<STR_LIT:b>' : '<STR_LIT:B>' } <EOL> k = '<STR_LIT>' <EOL> v = '<STR_LIT>' <EOL> for key in iter ( ob ) : <EOL> k += key <EOL> v += ob [ key ] <EOL> print k <EOL> print v <EOL> assert ( k == '<STR_LIT>' or k == '<STR_LIT>' ) <EOL> assert ( v == '<STR_LIT>' or v == '<STR_LIT>' ) <EOL> keys = [ ] <EOL> values = [ ] <EOL> for x , y in ob . items ( ) : <EOL> keys . append ( x ) <EOL> values . append ( y ) <EOL> assert ( '<STR_LIT:a>' in keys ) <EOL> assert ( '<STR_LIT:A>' in values ) <EOL> ob2 = { '<STR_LIT:c>' : '<STR_LIT:C>' , '<STR_LIT:d>' : '<STR_LIT:D>' } <EOL> e = <NUM_LIT:0> <EOL> arr = [ ] <EOL> for x , y in ob . items ( ) : <EOL> arr . append ( x ) <EOL> arr . append ( y ) <EOL> for w , z in ob2 . items ( ) : <EOL> e += <NUM_LIT:1> <EOL> arr . append ( w ) <EOL> arr . append ( z ) <EOL> assert ( e == <NUM_LIT:4> ) <EOL> assert ( '<STR_LIT:a>' in arr ) <EOL> assert ( '<STR_LIT:b>' in arr ) <EOL> assert ( '<STR_LIT:A>' in arr ) <EOL> assert ( '<STR_LIT:B>' in arr ) <EOL> assert ( '<STR_LIT:c>' in arr ) <EOL> assert ( '<STR_LIT:C>' in arr ) <EOL> assert ( '<STR_LIT:d>' in arr ) <EOL> assert ( '<STR_LIT:D>' in arr ) <EOL> main ( ) </s>
