$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #198

What is the output?

print('a,b,c'.count(','))
  1. 3
  2. 1
  3. 0
  4. 2
count returns how many times the substring appears; there are two commas.
Play Problem Solving ▸