chars = '123456dfr\t\n7890v' for c in chars: print('Yes') if c.isdigit() else print('No')
Standard input is empty
Yes Yes Yes Yes Yes Yes No No No No No Yes Yes Yes Yes No
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!