def is_strobogrammatic(num):
comb = "<STR_LIT>"<EOL>i = <NUM_LIT:0><EOL>j = len(num) - <NUM_LIT:1><EOL>while i <= j:<EOL><INDENT>x = comb.find(num[i]+num[j])<EOL>if x == -<NUM_LIT:1>:<EOL><INDENT>return False<EOL><DEDENT>i += <NUM_LIT:1><EOL>j -= <NUM_LIT:1><EOL><DEDENT>return True<EOL>
:type num: str
:rtype: bool