vinaykhatri
Vinay Khatri 1 October, 2021

Python TypeError: unsupported operand type(s) for -: ‘str’ and ‘int’ …

Python supports arithmetic operators to perform arithmetic operations between two numerical values.…

vinaykhatri
Vinay Khatri 1 October, 2021

Python IndexError: tuple index out of range Solution

Similar to Python lists, Python tuples also support indexing to access its individual elements. Alt…

vinaykhatri
Vinay Khatri 1 October, 2021

Python SyntaxError: ‘return’ outside function Solution

The return keyword in Python is used to end the execution flow of the function and send the result …

vinaykhatri
Vinay Khatri 1 October, 2021

Python SyntaxError: positional argument follows keyword argument Solu…

Python support two types of argument passing during a function call, Positional and Keyword Argumen…

vinaykhatri
Vinay Khatri 1 October, 2021

Python TypeError: unhashable type: ‘slice’ Solution

Python Dictionaries are the built-in hashtable data structure that maps a key to a corresponding va…

vinaykhatri
Vinay Khatri 1 October, 2021

Python AttributeError: 'NoneType' object has no attribute 'append' So…

The Python append() is a list method to add a new element object at the end of the list. But if we …

vinaykhatri
Vinay Khatri 1 October, 2021

Python TypeError: can only concatenate str (not “int”) to str Solution

In Python, we can use the + symbol as an addition operator between two numeric values and a concate…

vinaykhatri
Vinay Khatri 1 October, 2021

Python Dictionary Methods

A Dictionary is a Python inbuilt data structure that store the items in the form of key:value pairs…

vinaykhatri
Vinay Khatri 28 September, 2021

Longest Palindromic Subsequence using Dynamic Programming

Problem Statement You are given a String ‘S’ of a certain length, your task is to fi…

vinaykhatri
Vinay Khatri 28 September, 2021

Python indexerror: list index out of range Solution

Indexerror: list index out of range  is one of the most common errors you may encounter while …

vinaykhatri
Vinay Khatri 28 September, 2021

Python typeerror: ‘list’ object is not callable Solution

typeerror: ‘list’ object is not callable is a Python error, and it is not that common, …

vinaykhatri
Vinay Khatri 28 September, 2021

Python valueerror: too many values to unpack (expected 2) Solution

Python valueerror: too many values to unpack (expected 2)is an unpacking error that occurs whe…