FM radio dial by macik

while 1:i=input()-88;q=int(i*3+(i>11)*(i-11)+.5);print'|'+' '.join(map(str,range(88,109)))+'|\n|'+[' '*q+'*'+' '*(70-q),'x'*71][q<0 or q>71]+'|\n'

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page