id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

countTrips


Complete the function so that it returns the number of times three identical numbers appear in the list


countTrips([8, 8, 8, 8]) → 2
countTrips([7, 7, 7, 33, 33, 7, 7]) → 1
countTrips([5, 5, 5, 5, 5, 5, 5, 5, 5]) → 7

...Save, Compile, Run (ctrl-enter)

def countTrips( nums ):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 250

Copyright Nick Parlante 2017 - privacy