title: Square Every Digit of a Number in Python?
body: <p><strong>Square Every Digit of a Number in Python?</strong>
  if we run 9119 through the function, 811181 will come out, because 92 is 81 and 12 is 1.
  write a code but this not working.</p>
  
  <pre><code>def sq(num):
  words = num.split()  # split the text
  for word in words:  # for each word in the line:
      print(word**2) # print the word
  
  num = 9119
  sq(num)
  </code></pre>