Exemplo n.º 1
0
def print_color(word):
    """Print hello world to the console forever"""
    try:
        print(c.clear)
        while True:
            print(c.rc() + "Hello " + c.rc() + word + c.x,end = " ")
    except KeyboardInterrupt:
        print(c.clear)
        exit()
Exemplo n.º 2
0
def print_helloloop(word):
    """prints hello world in a loop"""
    try:
        print(c.clear)
        while True:
            print(c.rc() + "Hello " + c.rc() + word)

    except KeyboardInterrupt:
        print(c.clear)
        exit()
Exemplo n.º 3
0
def print_color(message):
    """Fills the screen with randomly colored <message>s.
    
    Args:
        message (str): message to print 

    """
    print(c.clear)
    while True:
        print(c.rc() + message + c.reset, end=" ")
Exemplo n.º 4
0
def print_color(message):
    """Fills the screen with randomly colored <message>s.
    
    Args:
        message (str): message to print 

    """
    print(c.clear)
    while True:
        print(c.rc() + message + c.reset, end=" ")
Exemplo n.º 5
0
def print_strawberry(message):
    while True:
        buf = ""
        for character in message:
            color = [
                c.red,
                c.base03,
                c.g,
                c.r
                ]
            buf += c.rc() + random.choice(color) + character
        print(buf, end=" ")
Exemplo n.º 6
0
def print_merica(message):
    while True:
        buf = ""
        for character in message:
    #for word in message.split():
            color = [
                c.red,
                c.blue,
                c.base3
                ]
           
            buf += c.rc() + random.choice(color) + character
        print(buf, end=" ")
Exemplo n.º 7
0
def print_plain(word):
    """clears screen and prints it 1x"""
    try:
        print(c.clear + c.rc() + word + c.reset)
    except KeyboardInterrupt:
        exit()
Exemplo n.º 8
0
def print_color(message):
    """Prints hello in color"""
    print(c.clear)
    while True:
        print(c.rc() + message + c.reset, end=" ")
Exemplo n.º 9
0
def nyan(message):
    """print hello world in nyan"""
    while True:
        print(c.rc() + message, end= " ")
Exemplo n.º 10
0
def nyan(message):
    "Nyan-esque message"
    print(c.clear)
    while True:
        print(c.rc() + message, end = " ")
Exemplo n.º 11
0
def plain(message):
    "Normal message"
    print(c.clear + c.rc() + message + c.reset)
Exemplo n.º 12
0
def ayylmao():
    "ayy lmao"
    print(c.clear + c.rc() + "ayy..")
    t.sleep(1)
    while True:
        print(c.rc() + "LMAO", end = "")
Exemplo n.º 13
0
def print_ascii(who):
    print(c.rc() + """
    |     |    |---   |      |       |---|  |
    |-----|    |---   |      |       |   |  |
    |     |    |---   |----  |----   |---|  O
    """ + who)
Exemplo n.º 14
0
def print_forever(message):
    """Prints Hello World in random colors all over the screen"""
    print(c.cl)
    while True:
        print(c.rc() + message + c.reset, end = " ")
Exemplo n.º 15
0
def random(message):
    """Prints hello world in pretty colors"""
    while True:
        print(c.clear + c.rc() + (message))
Exemplo n.º 16
0
def print_color(message):
    print(c.cl, end="")
    while True:
        print(c.rc() + message + c.x, end=" ")
Exemplo n.º 17
0
def print_plain(message):
    '''Clears the screen & says 'Hello World'.'''
    print(c.clear + c.rc() + message + c.reset)
Exemplo n.º 18
0
def print_colored(message):
    '''Prints like nyan.'''
    print(c.clear)
    while True:
        print(c.rc() + message + c.x, end=" ")
Exemplo n.º 19
0
def print_plain(message):
    print(c.cl + c.rc() + message + c.reset)
Exemplo n.º 20
0
def print_color(message):
    """Prints hello World in a random color"""
    print(c.cl + c.rc() + message + c.x)
Exemplo n.º 21
0
def print_nyan(message):
    """Prints <message> forever"""
    while True:
        print(c.rc() + message , end=" ")
Exemplo n.º 22
0
Arquivo: .py Projeto: wylie15/hello
def print_forever(message):
    while True:
          print(c.rc() + message)
Exemplo n.º 23
0
def print_color(message):
    """Prints hello in a random color each time"""
    print(c.rc() + message + "!" + c.reset)