Exactly three adjacent 3 in lists: Difference between revisions

clarify task description
m (→‎{{header|AppleScript}}: Added an AppleScript version)
(clarify task description)
Line 8:
<br>list[4] = [1,2,3,4,5,6,7,8,9]
<br>list[5] = [4,6,8,7,2,3,3,3,1]
<br><br>PrintFor 'true'each iflist, the valueprint '3true' appears inif the list contains exactly three '3's times andthat theyform area adjacentconsecutive onessubsequence, otherwise print 'false'.
<br>
 
2,469

edits