Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def two_length_run(ls):
- count = 0
- for i in range(len(ls)-1):
- if ls[i]==ls[i+1]:
- count +=1
- def main():
- ls = input("Enter a list of numbers separated by space: ").split(' ')
- print(two_length_run(ls))
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement