Markdown Previewer
PyScript
Startingβ¦
Editor
# π Welcome This Markdown previewer is powered by *PyScript* π β type on the left, see updates on the right β‘οΈ --- ## β¨ Highlights - β‘ **Live preview** while you type - π Click the **PyScript** badge (top) to jump to the docs (after it loads) - β Clean typography and dark theme - π Inline `code`, headings, lists, and quotes - π― Lightweight β single `index.html`, no extra files --- ## π Quick Tips - Use `#` through `######` for headings - Add horizontal rules with three dashes: --- - Create lists with `-` or numbers: - π Ship ideas - π§ͺ Test quickly - π Iterate > βSimplicity is the soul of efficiency.β β Austin Freeman ```python def fibonacci(n: int) -> list[int]: """Return a list containing the first n Fibonacci numbers.""" if n <= 0: return [] if n == 1: return [0] seq = [0, 1] while len(seq) < n: seq.append(seq[-1] + seq[-2]) return seq if __name__ == "__main__": print("First 10 Fibonacci numbers:", fibonacci(10)) ```
Preview
Show HTML