IItsmycodeinitsmycode.hashnode.dev·Dec 27, 2021 · 3 min readPython Comment BlockItsMyCode | Comments are a piece of text in a computer program that provides more information on the source code written. Like every other programming language, Python has three different types of comments: single-line comments, multi-line comments, ...00
IItsmycodeinitsmycode.hashnode.dev·Sep 9, 2021 · 3 min readHow to Find the Length of List in Python?ItsMyCode | The list in Python is a collection datatype that is ordered and mutable. Lists allow you to store multiple elements in a single variable. A list can have duplicate elements as well. In this tutorial, we will learn how to find the length o...00
IItsmycodeinitsmycode.hashnode.dev·Sep 8, 2021 · 3 min readPython ValueError: setting an array element with a sequenceIn Python, if you are mainly working with numpy and creating a multi-dimensional array, you would have encountered valueerror: setting an array element with a sequence. What is valueerror: setting an array element with a sequence? A ValueError occur...00
IItsmycodeinitsmycode.hashnode.dev·Sep 6, 2021 · 3 min readValueError: invalid literal for int() with base 10ValueError occurs when we pass an invalid argument type. The error is raised when we call int()function with string argument which Python cannot parse and throws ValueError: invalid literal for int() with base 10: ” Fix ValueError: invalid literal ...00
IItsmycodeinitsmycode.hashnode.dev·Sep 5, 2021 · 2 min readPython TypeError: ‘int’ object is not iterableItsMyCode | If you have read our previous article, the ‘ NoneType’ object is not iterable. You already know why Python throws ‘ typeerror ‘, and it occurs basically during the iterations like for and while loops. What exactly is TypeError: ‘int’ obj...00