Menu
Python Docs
Home
Tutorial
Problems
Playground
Reference
Home
Python HOME
Playground
Tutorial
Python Intro
Get Started
Python Syntax
Comments
Variables
Data Types
Numbers
Casting
Strings
Booleans
Operators
Collections
Lists
Tuples
Sets
Dictionaries
Control Flow
If ... Else
While Loops
For Loops
Functions
Functions
Lambda
OOP & More
Arrays
Classes / Objects
Inheritance
Iterators
Scope
Modules & Stdlib
Modules
Dates
Math
JSON
RegEx
Extras
Try ... Except
User Input
String Formatting
File Handling
File Handling
Read Files
Write / Create Files
Delete Files
Problems
Problems Overview
Polygon Area
Running Speed
Photo Details
Experiment Numbers
Bouncing Ball
Modified Blackjack
Distance Traveled
Booklet Layout
Reversed Text
First Double Peak
Orbital Period
Traffic Operation
Chamber Pressure
Reservoir Levels
New Price
Fruit Weights
Pattern Count
Event Probability
Arrival Times
Special Occurrence
Collatz Conjecture
Bank Account
Gauge Diameter
Parallel Resistors
Pendulum Period
Count Negatives
Digit Count
Sequence Difference
Reference
Reference Overview
Built-in Functions
String Methods
List Methods
Dictionary Methods
Tuple Methods
Set Methods
File Methods
Keywords
Exceptions
Python Playground
Write Python and run it in your browser (Pyodide). Tip:
Ctrl
/
Cmd
+
Enter
to run.
Run
Clear output
Starting…
Editor
Output