fork download
  1. a="abc,cde,\"ert,ert,eee"
  2. b="a", "b", "c"
  3. if type(a) is tuple:
  4. print len(list(a))
  5. else:
  6. x = a.split("\"")
  7. print len(x)
  8. if type(b) is tuple:
  9. print len(list(b))
  10. else:
  11. x = b.split("\"")
  12. print len(x)
Success #stdin #stdout 0.01s 7852KB
stdin
Standard input is empty
stdout
2
3