how to write a more Pythonic python code to convert a integer to a Iteration list?
<p>we have a function can permit user input a integer/a string format/list format </p>

<pre><code>   def testsum(data):
        if(type(data)==type(1)):
            data=map(int,str(data))

        for i in map(int,data):
            #print(type(i))
            print(i,i+20)

    if __name__=="__main__":
        testsum(1)#OK
        testsum([2,3,4])#OK
        testsum("123")#FAILS,we hope to be 143
        testsum(['5','6'])#OK
</code></pre>
