MCPcopy Create free account
hub / github.com/geekcomputers/Python / print_right

Function print_right

Industrial_developed_hangman/src/hangman/main.py:36–43  ·  view source on GitHub ↗

Print styled text(red). :parameter text: text to print. :parameter print_function: Function that will be used to print in game.

(text: str, print_function: Callable[[str], None])

Source from the content-addressed store, hash-verified

34
35
36def print_right(text: str, print_function: Callable[[str], None]) -> None:
37 """
38 Print styled text(red).
39
40 :parameter text: text to print.
41 :parameter print_function: Function that will be used to print in game.
42 """
43 print_function(Style.RESET_ALL + Fore.GREEN + text)
44
45
46def parse_word_from_local(

Callers 1

start_gameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected