fork download
  1. # your code goes here
  2.  
  3. valid = ["a","b","c","d"]
  4.  
  5. valid = valid[:-1]
  6. print(valid)
Success #stdin #stdout 0.01s 7228KB
stdin
Standard input is empty
stdout
['a', 'b', 'c']