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
What does Path("reports") / "daily.json" do?
from Python
beginner
1 min
What does Path("reports") / "daily.json" do?
It creates a new Path representing the joined path without touching the filesystem
It creates the reports directory and an empty daily.json file
It opens daily.json for division-style streaming
Check
Ask AI about this kata
Report an error
previous kata
By default, what SystemExit status does argparse use for an invalid value such as --count…
Fill in
next kata
What happens when Path("notes.txt").write_text("new") targets an existing file?
Quiz
A new version is available
Reload