fork(2) download
  1. colors = ['yellow', 'wine', 'blue', 'green', 'red', 'brown', 'red']
  2. sequence = ['blue', 'green', 'red']
  3.  
  4.  
  5. strColors = str(colors).strip("[]")
  6. strSequence = str(sequence).strip("[]")
  7.  
  8. if strSequence in strColors:
  9. print("yes")
  10. else:
  11. print("no")
  12.  
Success #stdin #stdout 0s 118656KB
stdin
Standard input is empty
stdout
yes