Beispiel #1
0
 def square(self):
     self.assertEqual(hello.square(4), 16)
Beispiel #2
0
from hello import square
from hello import main

print(square(10))
print(main(10))
Beispiel #3
0
def main():
    for i in range(10):
        print("{} squared is {}".format(i, square(i)))
Beispiel #4
0
#from hello import square

# for i in range(10):
#     print(square(i))
import hello

for i in range(10):
    print(hello.square(i))
Beispiel #5
0
def main():
    print(square(10))
    hello()
from hello import square

print(square(232))