Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Python
Which statement correctly distinguishes json.dumps() from json.dump()?
from Python
intermediate
1 min
Which statement correctly distinguishes json.dumps() from json.dump()?
dumps returns a JSON string; dump writes JSON to a file-like object
dump returns bytes; dumps always writes to disk
They differ only in indentation defaults
Check
Ask AI about this kata
Report an error
previous kata
A logger accepts DEBUG and above, but its only handler is set to WARNING. What happens to…
Quiz
next kata
What does pytest do if code inside with pytest.raises(ValueError) completes normally?
Quiz
A new version is available
Reload