def is_strobogrammatic2(num: str):
return num == num[::-<NUM_LIT:1>].replace('<STR_LIT>', '<STR_LIT:#>').replace('<STR_LIT>', '<STR_LIT>').replace('<STR_LIT:#>', '<STR_LIT>')<EOL>
Another implementation.