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
/
Predict the output
/
Python
/
Functions
What two lines does this program print?
from Functions
Python 3.14
beginner
2 min
What two lines does this program print?
Python
Copy
def
announce
(
name
):
print
(
f
"hello
{
name
}
"
)
result
=
announce
(
"Mina"
)
print
(result)
hello Mina, then None
hello Mina twice
None only
It raises NameError.
Check
Copy code
Open in playground
Ask AI about this kata
Report an error
previous kata
Which signature makes order_id positional-only and timeout keyword-only?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload