-
-
Save tonyb486/0e3efc9240953c86a50a019b56cc3b6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from sys import stdin | |
import random | |
print(""" | |
<style type='text/css'> | |
span.a { font-family: "Arial"; } | |
span.b { font-family: "Comic Sans MS"; } | |
span.c { font-family: "Helvetica"; } | |
span.d { font-family: "Brush Script MT"; } | |
span.e { font-family: "Times New Roman"; } | |
span.f { font-family: "Impact"; font-size: 60%; } | |
span.g { font-family: "Chalkduster"; } | |
</style>"""); | |
for line in stdin: | |
for c in line: | |
if c == "\n": | |
print("<br />") | |
elif c == " ": | |
print(" ") | |
else: | |
r = random.choice(["a", "b", "c", "d", "e", "f", "g"]) | |
print(f"<span class='{r}'>{c}</span>") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment