from module import sum1,prod1 zeroes = [0 for i in range(5)] ones = [1 for i in range (5)] print(sum1(zeroes)) print(prod1(ones))
from sys import path path.append('../modules') import module zeroes = [0 for i in range(5)] ones = [1 for i in range(5)] print(module.sum1(zeroes)) print(module.prod1(ones))
# -*- coding: utf-8 -*- """ Created on Fri Jun 12 12:46:16 2020 @author: Arles """ from module import sum1 x = 12 y = 34 print("Sum is ", sum1(x, y))
# -*- coding: utf-8 -*- """ Created on Fri Jun 12 12:44:42 2020 @author: Arles """ import module as md x = 12 y = 34 print ("Sum is ", md.sum1(x,y)) print ("Multiple is ", md.mul1(x,y))
# -*- coding: utf-8 -*- """ Created on Fri Jun 12 12:38:49 2020 @author: Arles """ import module x = 12 y = 34 print("Sum is ", module.sum1(x, y)) print("Multiple is ", module.mul1(x, y))