Introduction: Python Tutorials: a Matrix Themed Terminal

Step 1: The Code

After opening a blank python file, type the following code:

--- = tab

import random
while True:
---matrixNumber = random.randint(10000000000000000000, 9999999999999999999) #this number can be refined to fit your terminal perfectly by adding/removing a 0 from the first number and adding/removing a 9 from the second number
---print(matrixNumber)


When you run your code you should see that a terminal appears with random numbers on each line repeatedly changing
---WARNING---
This May lag your computer

Comments

author
kivster (author)2014-12-23

Whenever I try this program and run it, it says syntax error. I am just wondering what I should try next. Thanks in advanced.

author

copy the whole error and I'll tell u what to do

author

File 'C:\Users\kivster\Desktop\Python Programs\matrix.py', line 2

--- : tab

SyntaxError: invalid syntax

author

you must ignore this. it is not part of the code. it is because I often publish from my phone where there is no tab key that I replace it with 3 dashes instead. to make it run you must replace all the dashed with a press of the tab key

author
wilgubeast (author)2014-03-18

Thanks for the warning. Any lag represents a glitch in the Matrix, thus allowing programmers who are "the One" to code in bullet time. (I think. Morpheus was just in a terrible Kia commercial, so who knows where we stand fifteen years post-Matrix.)

About This Instructable

875views

13favorites

License:

Bio: 1 new python tutorial every day Comment what you want the next one to be Please favourite and subscribe Notice Board: - since instructables has automatically ... More »
More by BlueBlood Studios:Teach Me Python #7: Control Statements Pt.2: While LoopsTeach My Python #6: Control Statements Pt.1: If, Else And ElifTeach Me Python #5: Simple Maths
Add instructable to: