Skip to content

Commit c09b904

Browse files
committed
* Added Python 2 version
* Renamed files to reflect Python version * Updated README
1 parent a66b0ad commit c09b904

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

10print2.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python
2+
3+
import random
4+
import time
5+
6+
try:
7+
while True:
8+
line = u''
9+
for _ in range(80):
10+
line += unichr(int(9585.5 + random.random()))
11+
print line
12+
time.sleep(0.2)
13+
14+
except KeyboardInterrupt:
15+
exit(0)

print10.py 10print3.py

File renamed without changes.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## 10 PRINT in Pyhton 3
1+
## 10 PRINT in Pyhton 2 and 3
22

3-
This is a pure Python 3 implementation of the 10 PRINT Commodere 64 program.
3+
This is a pure Python implementation of the 10 PRINT Commodere 64 program.
44

55
If you never heard of "10 PRINT" [there is a book about it](https://10print.org/) !
66

0 commit comments

Comments
 (0)