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

 

list_adjacentSevens


Given a list of integers, return true if the list contains two values of 7 that are adjacent to each other.


list_adjacentSevens([7, 6, 7, 8]) → False
list_adjacentSevens([4, 5, 7, 7]) → True
list_adjacentSevens([6, 7, 7, 8, 9]) → True

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

def list_adjacentSevens(data):

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

Post-solution available

Copyright Nick Parlante 2017 - privacy