title: Generate list of all palindromic numbers of 3 digits in python
body: <p>I want to generate list of all palindromic numbers of 3 digits in python. I can code this in a crude way but is there some intuitive way using list comprehension or <code>itertools</code> etc?</p>
  <p>And also, How to do it if it is given the number is <code>k</code> digits instead of just 3?</p>