SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def two_length_run(ls):
  2.     count = 0
  3.     for i in range(len(ls)-1):
  4.         if ls[i]==ls[i+1]:
  5.             count +=1
  6.  
  7. def main():
  8.     ls = input("Enter a list of numbers separated by space: ").split(' ')
  9.     print(two_length_run(ls))
  10.    
  11. main()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top