All Python practice problems
Every challenge on PyDebug, on one page: 1000 bug-fixing and output-prediction problems grouped by topic. Free problems open straight into the in-browser compiler; pick one and start with the problems hub, the playground, or the debugging guide if you are new here.
dictionaries (94)
- Accessing a missing dictionary keymedium
- Deleting a key that doesn't existeasy
- Dictionary comprehension with conditionmedium
- Dictionary get with a defaultmedium
- Dictionary get with defaulteasy
- Dictionary keys must be uniquemedium
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary lookup with defaulteasy
- Dictionary pop() with defaultmedium
- Dictionary update() behaviormedium
- KeyError: pop('gita') missingmedium · 🔒
- KeyError: pop('gita') missingmedium · 🔒
- KeyError: pop('hari') missingmedium
- KeyError: pop('hari') missingmedium · 🔒
- KeyError: pop('hari') missingmedium · 🔒
- KeyError: pop('laxmi') missingmedium · 🔒
- KeyError: pop('laxmi') missingmedium
- KeyError: pop('mohan') missingmedium
- KeyError: pop('ram') missingmedium · 🔒
- KeyError: pop('ram') missingmedium
- KeyError: pop('ram') missingmedium · 🔒
- KeyError: pop('ram') missingmedium
- KeyError: pop('sita') missingmedium · 🔒
- KeyError: pop('sita') missingmedium · 🔒
- KeyError: wrong dictionary keymedium
- KeyError: wrong dictionary keymedium · 🔒
- KeyError: wrong dictionary keymedium · 🔒
- KeyError: wrong dictionary keymedium
- KeyError: wrong dictionary keymedium
- KeyError: wrong dictionary keymedium · 🔒
- KeyError: wrong dictionary keymedium
- KeyError: wrong dictionary keymedium · 🔒
- KeyError: wrong dictionary keymedium · 🔒
- KeyError: wrong dictionary keymedium
- KeyError: wrong dictionary keymedium · 🔒
- KeyError: wrong dictionary keymedium · 🔒
- KeyError: wrong dictionary keymedium · 🔒
- KeyError: wrong dictionary keymedium · 🔒
- KeyError: wrong dictionary keymedium
- KeyError: wrong dictionary keymedium
- KeyError: wrong dictionary keymedium
- KeyError: wrong dictionary keymedium
- Nested dictionary accessmedium
- setdefault() behaviormedium
- Summing dictionary valuesmedium · 🔒
- Summing dictionary valuesmedium · 🔒
- Summing dictionary valuesmedium · 🔒
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium · 🔒
- Summing dictionary valuesmedium · 🔒
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium · 🔒
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium · 🔒
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium · 🔒
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium
- Summing dictionary valuesmedium · 🔒
- Summing dictionary valuesmedium · 🔒
- Wrong syntax for adding a new keyeasy
exceptions (67)
- Custom exception messagesmedium
- Division by zero in a list comprehensionmedium
- Exception object detailshard · 🔒
- FileNotFoundError: 'report.txt' doesn't existmedium
- Finally runs even after returnhard · 🔒
- ModuleNotFoundError: no module 'maths'medium
- ModuleNotFoundError: no module 'maths'medium · 🔒
- ModuleNotFoundError: no module 'maths'medium
- ModuleNotFoundError: no module 'maths'medium
- ModuleNotFoundError: no module 'maths'medium · 🔒
- ModuleNotFoundError: no module 'maths'medium
- Multiple except with a shared exceptionmedium
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium
- try / except / finally flowmedium
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium · 🔒
- try / except / finally flowmedium
- try / except / finally flowmedium
- try / except / finally flowmedium
- try / except / finally flowmedium
- try / except / finally flowmedium
- try / except / finally flowmedium
- try-except-else flowmedium
- Wrong exception type caughtmedium
- Wrong exception type caughtmedium
- Wrong exception type caughtmedium · 🔒
- Wrong exception type caughtmedium · 🔒
- Wrong exception type caughtmedium · 🔒
- Wrong exception type caughtmedium
- Wrong exception type caughtmedium
- Wrong exception type caughtmedium · 🔒
- Wrong exception type caughtmedium
- Wrong exception type caughtmedium
- Wrong exception type caughtmedium · 🔒
- Wrong exception type caughtmedium
- Wrong exception type caughtmedium
- Wrong exception type caughtmedium
- Wrong exception type for int()medium
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium · 🔒
- Wrong exception type for int()medium
functions (141)
- *args used incorrectlyhard · 🔒
- abs() and type conversioneasy
- AssertionError: age check failsmedium
- AssertionError: age check failsmedium · 🔒
- AssertionError: age check failsmedium · 🔒
- AssertionError: age check failsmedium
- AssertionError: age check failsmedium
- AssertionError: age check failsmedium · 🔒
- AssertionError: age check failsmedium
- AssertionError: age check failsmedium
- Calling a function before defining iteasy
- Calling a function with too few argumentsmedium
- Chained assignmenteasy
- Closure remembering outer variablehard · 🔒
- Closures capturing a mutable objecthard · 🔒
- Comparison chainseasy
- Converting text that isn't a numbereasy
- Decorator changes the return valuehard · 🔒
- Decorator swallows the argumentshard · 🔒
- Decorator with argumentshard · 🔒
- Default parameter valuesmedium
- Function returning nothingeasy
- Inconsistent indentationeasy
- Integer division and moduloeasy
- Missing colon after function definitioneasy
- Modifying a variable before it's assigned locallymedium
- Multiple return valuesmedium
- Mutable default argument trapmedium
- not operator with different typeseasy
- Operator precedenceeasy
- Power with default argument (2)medium
- Power with default argument (3)medium
- Power with default argument (4)medium
- Power with default argument (5)medium
- Power with default argument (6)medium · 🔒
- Power with default argument (7)medium
- Power with default argument (8)medium · 🔒
- Power with default argument (9)medium · 🔒
- Rounding numberseasy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy · 🔒
- SyntaxError: '=' instead of '=='easy
- SyntaxError: '=' instead of '=='easy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- SyntaxError: missing colon after ifeasy
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium
- TypeError: 'int' object is not callable (sum)medium
- TypeError: 'int' object is not callable (sum)medium · 🔒
- TypeError: 'int' object is not callable (sum)medium
- TypeError: 'int' object is not callable (sum)medium
- TypeError: len() of a numbereasy · 🔒
- TypeError: len() of a numbereasy
- TypeError: len() of a numbereasy
- TypeError: len() of a numbereasy
- TypeError: len() of a numbereasy · 🔒
- TypeError: len() of a numbereasy
- TypeError: len() of a numbereasy
- TypeError: len() of a numbereasy
- TypeError: len() of a numbereasy
- TypeError: len() of a numbereasy
- TypeError: missing function argumentmedium
- TypeError: missing function argumentmedium · 🔒
- TypeError: missing function argumentmedium
- TypeError: missing function argumentmedium · 🔒
- TypeError: missing function argumentmedium
- TypeError: missing function argumentmedium
- TypeError: missing function argumentmedium · 🔒
- TypeError: missing function argumentmedium
- TypeError: missing function argumentmedium
- TypeError: missing function argumentmedium · 🔒
- TypeError: missing function argumentmedium · 🔒
- TypeError: missing function argumentmedium · 🔒
- TypeError: missing function argumentmedium · 🔒
- TypeError: missing function argumentmedium
- TypeError: missing function argumentmedium
- UnboundLocalError: total used before assignmentmedium · 🔒
- UnboundLocalError: total used before assignmentmedium
- UnboundLocalError: total used before assignmentmedium · 🔒
- UnboundLocalError: total used before assignmentmedium · 🔒
- UnboundLocalError: total used before assignmentmedium · 🔒
- UnboundLocalError: total used before assignmentmedium · 🔒
- UnboundLocalError: total used before assignmentmedium
- UnboundLocalError: total used before assignmentmedium
- UnboundLocalError: total used before assignmentmedium · 🔒
- UnboundLocalError: total used before assignmentmedium · 🔒
- UnboundLocalError: total used before assignmentmedium
- UnboundLocalError: total used before assignmentmedium
- UnboundLocalError: total used before assignmentmedium
- Using = instead of == in a checkeasy
- Using = instead of == in a conditioneasy
- Using a variable before it's definedmedium
- Variable scope inside a functionhard · 🔒
- ZeroDivisionError: average of empty listmedium
- ZeroDivisionError: average of empty listmedium
- ZeroDivisionError: average of empty listmedium · 🔒
- ZeroDivisionError: average of empty listmedium · 🔒
generators (14)
- Generator exhausts after one passhard · 🔒
- Generator expression vs list comprehensionhard · 🔒
- Generator multiples of 2medium
- Generator multiples of 2medium · 🔒
- Generator multiples of 3medium
- Generator multiples of 4medium
- Generator multiples of 4medium
- Generator multiples of 5medium
- Generator multiples of 5medium · 🔒
- Generator multiples of 5medium · 🔒
- Generators only run oncehard · 🔒
- StopIteration: next() past the endhard · 🔒
- StopIteration: next() past the endhard · 🔒
- StopIteration: next() past the endhard · 🔒
lists (114)
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- AttributeError: lists have no push()easy
- Checking membership in a listeasy
- in operator on a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy
- IndexError while printing a listeasy · 🔒
- IndexError while printing a listeasy
- IndexError: pop() from an empty listeasy
- IndexError: pop() from an empty listeasy
- IndexError: pop() from an empty listeasy
- IndexError: pop() from an empty listeasy
- IndexError: pop() from an empty listeasy
- IndexError: pop() from an empty listeasy
- IndexError: pop() from an empty listeasy
- IndexError: pop() from an empty listeasy
- IndexError: pop() from an empty listeasy
- List copy vs referenceeasy
- List extend vs appendeasy
- List methods in sequenceeasy
- List multiplicationmedium
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy · 🔒
- List slicing and indexingeasy · 🔒
- List slicing and indexingeasy · 🔒
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing and indexingeasy
- List slicing with stepmedium
- Looping one step too fareasy
- Negative indexingeasy
- Nested list comprehensionhard · 🔒
- Slicing does not include the end indexeasy
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard · 🔒
- Squares of even numbershard
- Squares of even numbershard
- Squares of even numbershard
- Squares of even numbershard · 🔒
- Squares of odd numbershard · 🔒
- Squares of odd numbershard · 🔒
- Squares of odd numbershard · 🔒
- Squares of odd numbershard
- Squares of odd numbershard · 🔒
- Squares of odd numbershard
- Wrong function to find list lengtheasy
loops (70)
- break vs continuemedium
- Character triangle pattern ('@')easy
- Character triangle pattern ('@')easy
- Character triangle pattern ('@')easy
- Character triangle pattern ('@')easy
- Character triangle pattern ('*')easy
- Character triangle pattern ('*')easy
- Character triangle pattern ('*')easy
- Character triangle pattern ('*')easy
- Character triangle pattern ('#')easy
- Character triangle pattern ('#')easy
- Character triangle pattern ('#')easy
- Character triangle pattern ('#')easy
- Character triangle pattern ('#')easy
- else clause on a for loopmedium
- enumerate with a start valueeasy
- for loop with range and stepmedium
- IndentationError in a loopeasy
- IndentationError in a loopeasy
- IndentationError in a loopeasy
- IndentationError in a loopeasy
- IndentationError in a loopeasy
- IndentationError in a loopeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- IndexError: loop runs past a short listeasy
- Loop range boundarieseasy
- Loop sum from 1 to 3easy
- Loop sum from 1 to 4easy
- Loop sum from 1 to 5easy
- Loop sum from 2 to 4easy
- Loop sum from 2 to 6easy
- Loop sum from 3 to 5easy
- Loop sum from 3 to 6easy
- Loop sum from 3 to 7easy
- Loop variable after the loop endsmedium
- Missing Colon in for Loopeasy
- Nested loop with a shared variablemedium
- TypeError: looping directly over a numbereasy
- TypeError: looping directly over a numbereasy
- TypeError: looping directly over a numbereasy
- TypeError: looping directly over a numbereasy
- TypeError: looping directly over a numbereasy
- TypeError: looping directly over a numbereasy
- TypeError: looping directly over a numbereasy · 🔒
- TypeError: looping directly over a numbereasy
- TypeError: looping directly over a numbereasy
- TypeError: looping directly over a numbereasy
- TypeError: range('4') gets texteasy · 🔒
- TypeError: range('5') gets texteasy
- TypeError: range('6') gets texteasy
- TypeError: range('7') gets texteasy
- TypeError: range('8') gets texteasy
- while loop with a condition updatemedium
- ZeroDivisionError: modulo by zero in a loopmedium · 🔒
oop (60)
- AttributeError: missing selfmedium · 🔒
- AttributeError: missing selfmedium · 🔒
- AttributeError: missing selfmedium · 🔒
- AttributeError: missing selfmedium
- AttributeError: missing selfmedium
- AttributeError: missing selfmedium
- AttributeError: missing selfmedium
- AttributeError: missing selfmedium
- AttributeError: missing selfmedium
- AttributeError: missing selfmedium
- Bird overrides speak()medium
- Cat overrides speak()medium
- Class attribute mutation across instanceshard · 🔒
- Class method missing clshard · 🔒
- Class variable shared across instancesmedium
- Counter object adds upmedium · 🔒
- Counter object adds upmedium
- Counter object adds upmedium
- Counter object adds upmedium · 🔒
- Counter object adds upmedium
- Counter object adds upmedium
- Counter object adds upmedium
- Counter object adds upmedium · 🔒
- Counter object adds upmedium · 🔒
- Counter object adds upmedium · 🔒
- Counter object adds upmedium
- Counter object adds upmedium · 🔒
- Counter object adds upmedium · 🔒
- Counter object adds upmedium
- Counter object adds upmedium · 🔒
- Counter object adds upmedium · 🔒
- Counter object adds upmedium
- Counter object adds upmedium
- Counter object adds upmedium
- Counter object adds upmedium
- Counter object adds upmedium
- Counter object adds upmedium
- Cow overrides speak()medium · 🔒
- Dog overrides speak()medium · 🔒
- Duck overrides speak()medium
- Horse overrides speak()medium · 🔒
- isinstance and class hierarchyhard · 🔒
- Lion overrides speak()medium · 🔒
- Method Resolution Order (MRO)hard · 🔒
- NotImplementedError: speak() not implementedhard · 🔒
- NotImplementedError: speak() not implementedhard · 🔒
- NotImplementedError: speak() not implementedhard · 🔒
- NotImplementedError: speak() not implementedhard · 🔒
- NotImplementedError: speak() not implementedhard · 🔒
- NotImplementedError: speak() not implementedhard · 🔒
- Property decorator behaviorhard · 🔒
- Snake overrides speak()medium · 🔒
- TypeError: method called on the classmedium
- TypeError: method called on the classmedium · 🔒
- TypeError: method called on the classmedium · 🔒
- TypeError: method called on the classmedium · 🔒
- TypeError: method called on the classmedium · 🔒
- TypeError: method called on the classmedium
- TypeError: method called on the classmedium · 🔒
- TypeError: method called on the classmedium · 🔒
recursion (17)
- Factorial of 3medium
- Factorial of 4medium
- Factorial of 5medium · 🔒
- Factorial of 6medium
- Factorial of 7medium
- Recursion with a base case that's never reachedhard · 🔒
- RecursionError: counting the wrong wayhard · 🔒
- RecursionError: counting the wrong wayhard · 🔒
- RecursionError: counting the wrong wayhard
- RecursionError: missing base casehard · 🔒
- RecursionError: missing base casehard · 🔒
- RecursionError: missing base casehard · 🔒
- Recursive factorial tracemedium · 🔒
- Recursive Fibonacci with memoizationhard · 🔒
- Recursive function missing a base casemedium · 🔒
- Recursive list flatteninghard · 🔒
- Recursive string reversalhard · 🔒
sets (67)
- Adding an unhashable type to a setmedium · 🔒
- Set removes duplicates automaticallyeasy
- Set union and intersectionmedium · 🔒
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Set union and intersectioneasy
- Trying to index into a sethard · 🔒
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: sets cannot be indexedeasy
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard · 🔒
- TypeError: unhashable list added to sethard
sorting (59)
- sorted() with a key functionmedium
- Sorting a list with mixed typesmedium
- Sorting doesn't return a new listmedium · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard
- Sorting words by lengthhard
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard
- Sorting words by lengthhard
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- Sorting words by lengthhard · 🔒
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy · 🔒
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
- TypeError: sorting mixed text + numberseasy
strings (230)
- AttributeError: strings have no uppercase()easy
- AttributeError: strings have no uppercase()easy
- AttributeError: strings have no uppercase()easy
- AttributeError: strings have no uppercase()easy
- AttributeError: strings have no uppercase()easy
- AttributeError: strings have no uppercase()easy
- AttributeError: strings have no uppercase()easy
- AttributeError: strings have no uppercase()easy
- AttributeError: strings have no uppercase()easy
- AttributeError: strings have no uppercase()easy
- Calling a method that doesn't existhard · 🔒
- Converting invalid text to a numbermedium
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy · 🔒
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy · 🔒
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- f-string greetingeasy
- IndexError: s[3] on 'yo'easy
- IndexError: s[4] on 'go'easy
- IndexError: s[5] on 'ok'easy
- IndexError: s[5] on 'ok'easy
- IndexError: s[5] on 'sun'easy
- IndexError: s[6] on 'cat'easy
- IndexError: s[6] on 'go'easy
- IndexError: s[6] on 'hi'easy
- IndexError: s[6] on 'yo'easy
- IndexError: s[7] on 'go'easy
- IndexError: s[7] on 'sun'easy
- IndexError: s[8] on 'sun'easy
- IndexError: s[8] on 'sun'easy
- IndexError: s[8] on 'up'easy · 🔒
- IndexError: s[8] on 'up'easy
- IndexError: s[8] on 'up'easy
- IndexError: s[8] on 'yo'easy
- IndexError: s[9] on 'go'easy
- IndexError: s[9] on 'ok'easy
- IndexError: s[9] on 'yo'easy
- join() and split()medium
- Missing indentation after ifeasy
- Mixing text and numbers in printeasy
- NameError: missing quotes around 'Amit'easy
- NameError: missing quotes around 'Amit'easy
- NameError: missing quotes around 'Amit'easy
- NameError: missing quotes around 'Arjun'easy
- NameError: missing quotes around 'Kiran'easy
- NameError: missing quotes around 'Neha'easy
- NameError: missing quotes around 'Neha'easy
- NameError: missing quotes around 'Neha'easy
- NameError: missing quotes around 'Priya'easy
- NameError: missing quotes around 'Rahul'easy
- NameError: missing quotes around 'Ram'easy
- NameError: missing quotes around 'Vikram'easy
- NameError: name typo ('Amit')easy
- NameError: name typo ('Divya')easy
- NameError: name typo ('Kiran')easy
- NameError: name typo ('Neha')easy
- NameError: name typo ('Priya')easy
- NameError: name typo ('Rahul')easy
- NameError: name typo ('Ram')easy
- NameError: name typo ('Ram')easy · 🔒
- NameError: name typo ('Ram')easy
- NameError: name typo ('Sita')easy
- NameError: name typo ('Vikram')easy
- Slicing 'coding'easy
- Slicing 'coding'easy
- Slicing 'coding'easy
- Slicing 'debug'easy
- Slicing 'debug'easy
- Slicing 'planet'easy
- Slicing 'planet'easy
- Slicing 'planet'easy
- Slicing 'python'easy
- Slicing 'python'easy
- Slicing 'python'easy
- Slicing 'rocket'easy
- Slicing 'rocket'easy
- Slicing 'tiger'easy
- Slicing 'tiger'easy
- Slicing 'tiger'easy
- Slicing 'tiger'easy
- String case methodseasy
- String comparison basicseasy
- String concatenation with +easy
- String formatting with numbersmedium · 🔒
- String methods on 'balloon'medium · 🔒
- String methods on 'balloon'medium
- String methods on 'balloon'medium · 🔒
- String methods on 'balloon'medium
- String methods on 'coffee'medium · 🔒
- String methods on 'coffee'medium
- String methods on 'coffee'medium
- String methods on 'mississippi'medium
- String methods on 'mississippi'medium · 🔒
- String methods on 'mississippi'medium · 🔒
- String methods on 'mississippi'medium · 🔒
- String methods on 'mississippi'medium · 🔒
- String methods on 'mississippi'medium · 🔒
- String methods on 'pepper'medium · 🔒
- String methods on 'pepper'medium
- String methods on 'pepper'medium
- String methods on 'pepper'medium
- String methods on 'pepper'medium
- String multiplication and indexingeasy
- String multiplication in a loopmedium
- String repetition and lengtheasy
- String startswith and endswitheasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: print without parentheseseasy
- SyntaxError: unclosed parenthesiseasy · 🔒
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- SyntaxError: unclosed parenthesiseasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy · 🔒
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string + numbereasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- TypeError: string letters can't be reassignedeasy
- ValueError: int('fifty')easy
- ValueError: int('ninety')easy
- ValueError: int('seventeen')easy
- ValueError: int('thirty')easy
- ValueError: int('twenty')easy
- Wrong quote type breaks the stringeasy
- zip() combining two listsmedium
tuples (67)
- Swapping variables with tuplesmedium
- Trying to modify a tupleeasy
- Tuple comparisonmedium · 🔒
- Tuple immutabilityeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy · 🔒
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpackingeasy
- Tuple unpacking with functionsmedium
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium
- TypeError: tuple cannot be changedmedium
- TypeError: tuple cannot be changedmedium
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- TypeError: tuple cannot be changedmedium · 🔒
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy · 🔒
- ValueError: too many values to unpackeasy
- ValueError: too many values to unpackeasy