Complete the following Python function: ```python def strin...
Prompt
Complete the following Python function: ```python def string_sequence(n: int) -> str: """ Return a string containing space-delimited numbers starting from 0 upto n inclusive. >>> string_sequence(0) '0' >>> string_sequence(5) '0 1 2 3 4 5' """ ```
Answer guidance
Canonical solution (function body): return ' '.join([str(x) for x in range(n + 1)])
Drag to resize