CodeQuest
๐
Python
Run
Save
Share
Projects
AI Tutor
๐
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Python Playground โ CodeQuest def greet(name: str) -> str: """Return a personalized greeting.""" return f"Hello, {name}! Welcome to CodeQuest ๐" # Try modifying this code names = ["Alice", "Bob", "Charlie"] for name in names: print(greet(name)) # Fibonacci example def fib(n: int) -> list[int]: a, b = 0, 1 result = [] for _ in range(n): result.append(a) a, b = b, a + b return result print("\nFibonacci sequence:", fib(10))
Python
Console
No output yet
Run your code to see results here
Run Code
โฏ
ready