$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · easy · #221
What is the output?
print('banana'.replace('a', 'o', 2))
bonana
bonono
banono
bonona
The third argument caps the number of replacements, so only the first two a characters change.
Play Problem Solving ▸
◂ #220
all Problem Solving — predict the output questions
#222 ▸