def wishing(self):
     from welcome import greet
     from output_module import give_output
     g = greet()
     give_output(g)
示例#2
0
#!/usr/bin/python3

import welcome

memberlist = [
    'Peter',
    'Mark',
    'Liz',
    'Dave',
    'John',
    'Tom',
]

#print(memberlist)
#print(sorted(memberlist))

welcome.greet(sorted(memberlist))
示例#3
0
    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():
示例#4
0
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)
示例#5
0
def welcome():
    return greet()
示例#6
0
import welcome as w

print(w.x)
print(w.y)

w.greet("nagesh singh rajput")
示例#7
0
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")