Learn to Code via Tutorials on Repl.it!

← Back to all posts
How 2 ASCII Text In Python! (Easy)
h
JWZ6 (644)

Welcome!

This ASCII method supports only:

  • numbers
  • text
  • some special characters
NO EMOJIS!

How 2 Print ASCII In Python (Easy)

This tutorial is actually quite simple! Just follow along.

Step 1

The Python 3.0.0 programming language has a module called art. You can import tprint from that module. Here's how you do it:

from art import tprint

Easy, right? Just make sure that the art module loads properly. Now to step 2!

Step 2

We then use tprint like tprint(). Inside the (), you can put in a string or number. For example, you could have:

Input:

from art import tprint

tprint("Hello!")

Output:

 _   _        _  _         _ 
| | | |  ___ | || |  ___  | |
| |_| | / _ \| || | / _ \ | |
|  _  ||  __/| || || (_) ||_|
|_| |_| \___||_||_| \___/ (_)

Let's move on to step 3!

Step 3

Were basically done now! This step is just for customization. We can use font to change the style of the ASCII.

Here are some recommended fonts:

  • Wdym - Really Big And Detailed
  • Noice - Big and Fancy
  • Idk - Chinese-styled
  • Lol - Big and Italic-styled
  • Binary - Literally Binary
  • Balsamiq - Medium Height and Fancy

For example, you can have:

Input

from art import tprint

tprint("Hi", font="Wdym")

Output

hhhhhhh               iiii   !!! 
h:::::h              i::::i !!:!!
h:::::h               iiii  !:::!
h:::::h                     !:::!
 h::::h hhhhh       iiiiiii !:::!
 h::::hh:::::hhh    i:::::i !:::!
 h::::::::::::::hh   i::::i !:::!
 h:::::::hhh::::::h  i::::i !:::!
 h::::::h   h::::::h i::::i !:::!
 h:::::h     h:::::h i::::i !:::!
 h:::::h     h:::::h i::::i !!:!!
 h:::::h     h:::::h i::::i  !!! 
 h:::::h     h:::::hi::::::i     
 h:::::h     h:::::hi::::::i !!! 
 h:::::h     h:::::hi::::::i!!:!!
 hhhhhhh     hhhhhhhiiiiiiii !!! 

Guess what?

The tutorial is finished. Crazy, right! Anyways, I'm done for now...

Bye!

Comments
hotnewtop
Bunnytoes (111)

I wish I could do this in c# but great job

Th3Coder (129)
    __
    ⎞ |
    ⎠ |____
___/  〈____〉
|     〈____〉
|     〈____〉
 ∖____\___〉

GREAT TUTORIAL! This is actually helpful!

Th3Coder (129)

@JWZ6 you're welcome! Also I typed that horrible gigantic emoticon myself XD

JWZ6 (644)

@Th3Coder It's actually pretty good :D

Th3Coder (129)

@JWZ6

HAI 1.2
  I HAS A EMOTICON
  GIMMEH EMOTICON
  EMOTICON ISGUD, O RLY?
    YA RLY
      VISIBLE "Ok"
    NO WAI
      VISIBLE "Ok"
  OIC
KTHXBYE