Experimental communication tools (televex screen + televex print)
https://televex.vvvvvvaria.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
342 B
25 lines
342 B
4 years ago
|
from random import choice
|
||
|
|
||
|
def random (marks=['']):
|
||
|
def func ():
|
||
|
return choice(marks)
|
||
|
|
||
|
return func
|
||
|
|
||
|
def sentence (text):
|
||
|
chars = list(text)
|
||
|
def f():
|
||
|
char = chars.pop(0)
|
||
|
chars.append(char)
|
||
|
return char
|
||
|
return f
|
||
|
|
||
|
def single (char):
|
||
|
def f():
|
||
|
return char
|
||
|
|
||
|
return f
|
||
|
|
||
|
def space (space=' '):
|
||
|
return single(space)
|