Skip to main content
added 50 characters in body
Source Link
Taku
  • 37
  • 5

Python with pyfiglet: 66 using argv, 69 without

66:

from pyfiglet import* print(figlet_format(sys.argv[1],font='3x5')) 

69:

from pyfiglet import* print(figlet_format('Hello-World!',font='3x5')) 

firs must be called as, for example:

python asciiart.py -'Hello'Hello-World!'

second:

python asciiart.py.

Output:

 # # # # # # # # # # # ### # # ### # # ### ### # ### # ###  ### ## # # # # ### ### # # # # # # # # # ### ## ## ### ### ### # ## ### # # # # # 

(Well, it looks kinda crappy with this font. Nevertheless :) )

[edit] removed obsolete dash from the argument.

Python with pyfiglet: 66 using argv, 69 without

66:

from pyfiglet import* print(figlet_format(sys.argv[1],font='3x5')) 

69:

from pyfiglet import* print(figlet_format('Hello-World!',font='3x5')) 

firs must be called as, for example:

python asciiart.py -'Hello-World!'

second:

python asciiart.py.

Output:

 # # # # # # # # # # # ### # # ### # # ### ### # ### # ### ### ## # # # # ### ### # # # # # # # # # ### ## ## ### ### ### # ## ### # # # # # 

(Well, it looks kinda crappy with this font. Nevertheless :) )

Python with pyfiglet: 66 using argv, 69 without

66:

from pyfiglet import* print(figlet_format(sys.argv[1],font='3x5')) 

69:

from pyfiglet import* print(figlet_format('Hello-World!',font='3x5')) 

firs must be called as, for example:

python asciiart.py 'Hello-World!'

second:

python asciiart.py.

Output:

 # # # # # # # # # # # ### # # ### # # ### ### # ### #   ### ## # # # # ### ### # # # # # # # # # ### ## ## ### ### ### # ## ### # # # # # 

(Well, it looks kinda crappy with this font. Nevertheless :) )

[edit] removed obsolete dash from the argument.

Source Link
Taku
  • 37
  • 5

Python with pyfiglet: 66 using argv, 69 without

66:

from pyfiglet import* print(figlet_format(sys.argv[1],font='3x5')) 

69:

from pyfiglet import* print(figlet_format('Hello-World!',font='3x5')) 

firs must be called as, for example:

python asciiart.py -'Hello-World!'

second:

python asciiart.py.

Output:

 # # # # # # # # # # # ### # # ### # # ### ### # ### # ### ### ## # # # # ### ### # # # # # # # # # ### ## ## ### ### ### # ## ### # # # # # 

(Well, it looks kinda crappy with this font. Nevertheless :) )