Sep-20-2017, 06:12 PM
(This post was last modified: Sep-20-2017, 07:58 PM by sparkz_alot.)
# 3. Using the following list and a “for” loop, display differences of all consecutive pairs of numbers in the list.
our_list = [1,2,5,6,3,77,9,0,3,23,0.4,-12.4,-3.12]
for i in our_list:
print(i-1)
our_list = [1,2,5,6,3,77,9,0,3,23,0.4,-12.4,-3.12]
for i in our_list:
print(i-1)