Skip to content

Commit 5cd3c9c

Browse files
committed
Adding python implementation
1 parent 559060c commit 5cd3c9c

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
alanscii
22
========
33

4-
This repository hosts a variety of languages which I have played with to do a trivial task of printing ASCII art that represents one of the mascots of [engineering.cerner.com](http://engineering.cerner.com/).
4+
This repository hosts a variety of languages which I have played with to do a trivial task of printing ASCII art that represents one of the mascots at [Cerner Engineering](http://engineering.cerner.com/).
55

66
### ASCII example
7-
7+
This ASCII representation is a cartoon mascot at [Cerner Engineering](http://engineering.cerner.com/), which is [Alan Turing](http://en.wikipedia.org/wiki/Alan_Turing).
88
```
99
.l: .cl. 'l: :l. cl.
1010
.lollddllddoldxlcdkxookc
@@ -37,7 +37,8 @@ This repository hosts a variety of languages which I have played with to do a tr
3737
```
3838

3939
### Languages
40-
* [Go](https://golang.org/) - [art.go](go/art.go) (`go run art.go`)
41-
* [Ruby](https://www.ruby-lang.org/en/) - [art.rb](ruby/art.rb) (`ruby art.rb`)
40+
* [go](https://golang.org/) - [art.go](go/art.go) (`go run art.go`)
41+
* [ruby](https://www.ruby-lang.org/en/) - [art.rb](ruby/art.rb) (`ruby art.rb`)
4242
* [node.js](http://nodejs.org/) - [art.js](node/art.js) (`node art.js`)
43-
* [bash](https://www.gnu.org/software/bash/manual/) - [art.sh](bash/art.sh) (`bash art.sh`)
43+
* [bash](https://www.gnu.org/software/bash/manual/) - [art.sh](bash/art.sh) (`bash art.sh`)
44+
* [python](https://docs.python.org/3/) - [art.py](python/art.py) (`python art.py`)

python/art.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# art.py
2+
#
3+
# "2 to the 5th" programming competition @ engineering.cerner.com
4+
#
5+
# Read in the ASCII art file and simply print it to the console.
6+
# Note: This assumes you are executing "python art.py" in the current
7+
# working directory.
8+
file = open('../art/alan.txt', 'r')
9+
for line in file:
10+
print line,

0 commit comments

Comments
 (0)