Python Practice PackPractice the Python from All the Python You Need For Data Science. Pick an exercise, edit the code, press Run. Everything runs in your browser.All Easier Harder HardestAll topicsConditionalsDataclassesDictionariesErrors & exceptionsFunctionsListsReading & writing filesSlicing & indexingString formatting 28 / 28 exercises Every third month Slicing & indexing Easier The last quarter Slicing & indexing Easier Customers over time Lists Easier Customers to revenue Lists Easier The KeyError Dictionaries Easier A bolder scenario Dictionaries Easier Write simulate Functions Easier The function that returns None Functions Easier The chrun typo Dataclasses Easier One formatted line String formatting Easier Rank the scenarios Functions Harder locked Run every scenario Dictionaries Harder locked A default price Dictionaries Easier locked Define Scenario Dataclasses Harder locked Sticky from base Dataclasses Easier locked Churn tiers Conditionals Easier locked Ship, revert or keep running Conditionals Harder locked Reject impossible churn Errors & exceptions Harder locked Collect the failures Errors & exceptions Harder locked Which exception? Errors & exceptions Easier locked Predict the format spec String formatting Easier locked Format a table row String formatting Harder locked Reverse a string Slicing & indexing Easier locked Month over month growth Lists Harder locked Write and read back Reading & writing files Harder locked Parse a CSV-like text Reading & writing files Hardest locked Add seasonality Functions Hardest locked Add a price change Functions Hardest locked← All exercises Previous NextRun Reset code Unlock