← Back to Functions
Question 329
Return Without Parameters
Return Without Parameters
Complete lucky_number() -> int, a function with no parameters that returns the whole number 7. The tests multiply what it returns by 3 and print the result, so the output is one line with three times that number. Do NOT write a main block or any top-level test code; the tests construct the calls. Input: none.
Expected Output:
21= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Functions
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.