Advertisement
arunvsuresh

Untitled

Aug 29th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def longest_repetition(lst):
  2.     count = 0
  3.     for num in range(len(lst)):
  4.         if lst[num] == lst[num - 1]:
  5.             count += 1
  6.             repeating_num = lst[num]
  7.             print repeating_num
  8.     return repeating_num
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement