Create a function that given an integer, returns an integer where every digit in the input integer is squared. code example
Example: Create a function that given an integer, returns an integer where every digit in the input integer is squared.
def sq_every_num(number):
result = ''
for ch in str(number):
result += str(int(ch) ** 2)
return int(result)