def wishing(self): from welcome import greet from output_module import give_output g = greet() give_output(g)
#!/usr/bin/python3 import welcome memberlist = [ 'Peter', 'Mark', 'Liz', 'Dave', 'John', 'Tom', ] #print(memberlist) #print(sorted(memberlist)) welcome.greet(sorted(memberlist))
if ans.lower() == 'yes': output("Enter Path") path = take_input() statement2 = 'music_path = "' + path + '"' + '\n' f.write(statement2) else: statement2 = 'music_path = "' + '"' + '\n' f.write(statement2) f.close() if my_file.is_file(): #Welcome message status = setup.status check_last_modify() welcome.greet(status) while (True): if listen_is_on(): i = listen() else: i = take_input() o = process(i) output(o) else: installation() import setup status = setup.status welcome.greet(status) while (True): if listen_is_on():
from input_module import take_input from process_module import process from output_module import give_output import welcome import os os.system("CLS") #welcome message welcome.greet() while (True): i = take_input() o = process(i) give_output(o)
def welcome(): return greet()
import welcome as w print(w.x) print(w.y) w.greet("nagesh singh rajput")
import welcome name = input("what is your name") welcome.greet(name) # see here we are using method of module through module name print(welcome.x) print(welcome.y) # see here we can also use the attributes of module through module name
import welcome as w print (w.x) print (w.y) w.greet("nagesh singh rajput")