print len([i for i in xrange(10000, 100000) if str(i)[-1] == '1'])
Standard input is empty
9000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!