12

mail@pastecode.io avatar
unknown
plain_text
2 years ago
263 B
2
Indexable
Never
import unittest

def add100(list):
    k=0
    for el in list:
        list[k] = el+ 100
        k += 1
    return(list)


class my_add(unittest.TestCase):
    def test_add100(self):
        self.assertEqual(add100([22, 52, 12]),[122, 152, 112])


unittest.main()