$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · easy · #198
What is the output?
print('a,b,c'.count(','))
3
1
0
2
count returns how many times the substring appears; there are two commas.
Play Problem Solving ▸
◂ #197
all Problem Solving — predict the output questions
#199 ▸