Python Tuple
Explore the versatility of Python tuples. Dive into the world of immutable data structures and discover how tuples can streamline your code.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Explore the versatility of Python tuples. Dive into the world of immutable data structures and discover how tuples can streamline your code.
Learn Python lists with runnable examples: create, index, slice, add, remove, sort and copy lists, then practise with 100 list programs and solutions.
Learn Python strings: create, index and slice them, use common string methods like split, join, replace, strip and find, and understand immutability.
Learn Python for and while loops: range(), looping over lists, strings and dicts, break, continue, else on loops, nested loops and common loop patterns.
Learn Python's built-in data types: numbers, strings, booleans, None, lists, tuples, sets and dictionaries, mutable vs immutable, and how to check a type.
Learn Python if, elif and else statements, nested conditions, the one-line conditional expression, and how to combine conditions with and, or and not.
Learn Python variables: create and reassign them, naming rules, multiple assignment, swapping values, constants and how names refer to objects.
Write a Python program to get the median of all the elements of a list. Step-by-step explanation, colour-coded code and real output.
What is Python? Learn its history, key features, what Python is used for and how the interpreter runs your code, with runnable examples and a quiz.
Create `Dog` (inherits `Animal`) with breed and weight, and a method to print all details. Step-by-step explanation, colour-coded code and real output.
Create `Animal` with name and colour and a method to print them. Step-by-step explanation, colour-coded code and real output.
Create `ShoppingCart` with items and total cost, and methods to add and remove items and calculate the...
Take free timed mock tests with answers and explanations.