MasterCambridge
Subjects
Practice
Mock Exam
Programming
Dashboard
Progress
Settings
English (US)
Sign In
English (US)
Subjects
Practice
Programming
Mock Exam
Progress
Analytics
Leaderboard
Badges
Settings
MasterCambridge AI
Code Playground
Write, run, debug, and experiment with code
🐍
Python
🟨
JavaScript
🔷
TypeScript
☕
Java
🔵
C
⚙️
C++
💜
C#
🦀
Rust
🐹
Go
🎯
Kotlin
🍎
Swift
🐘
PHP
💎
Ruby
🗄️
SQL
⚡
Assembly
💜
Visual Basic
main.py
# Python Playground # Write your code here and click Run def greet(name): return f"Hello, {name}! Welcome to programming." message = greet("World") print(message) # Try modifying this code! numbers = [1, 2, 3, 4, 5] total = sum(numbers) print(f"Sum of {numbers} = {total}")
Run Code
Debug
Ctrl+Enter to run
Output
Debugger
Variables
AI Help
Output
Click Run Code to see output
Quick Reference
print("text")
x = input("prompt: ")
for i in range(n):
def func(param):