-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInteger Number Line.py
More file actions
22 lines (19 loc) · 1.03 KB
/
Integer Number Line.py
File metadata and controls
22 lines (19 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Hey kids, whenever a math teacher wants you to create
# an integer number line, make Python cheat one up for
# you in no time at all just by creating a simple for loop
# that starts with a negative integer number that counts
# backwards to zero, until it counts forward with positive
# integer numbers, along with a step value of 1. After you
# execute/run this Python program example, you can
# highlight and copy, and then paste the contents of the
# screen output into your math homework. You can create
# a for loop that can count as many integer numbers you
# please. You can also increase the step value to make
# the integer numbers increment by two or whatever you
# like. Experiment with this small Python program example.
# Because some times, it's the small things that matter
# the most.
for i in range(-10,11,1):
print(i,end=', ') # The end= prefix keeps print() function text on one line.
# I am almost a complete Walking Human Computer Science Research
# Laboratory Machine on Two Legs... 😁