Python TypeError: can only join an iterable Solution
The join() method lets you transform an iterable object such as a list into a string. It is the opposite of the split() method. If you try to use this method to join a value that is not an iterable…
Python SyntaxError: can’t assign to function call Solution
To assign the result of a function to a variable, you must specify the variable name, followed by an equals sign, followed by the function you want to call. If you do not follow this order, you’ll encounter a “SyntaxError:…
Python typeerror: ‘list’ object is not callable Solution
When you try to access items in a list using curly brackets ( () ), Python returns an error. This is because Python thinks that you are trying to call a function. In this guide, we talk about the Python…
URL vs. URI: A Guide
The Internet is powered by acronyms. There’s HTTP which allows clients and servers to connect with each other and there’s SSL which is used to keep data secure. If you’ve spent any time working as a web developer, you’ve likely…
What is a Markup Language?
When we talk about markup languages in programming, we don’t mean that someone is trying to raise the price of something. A markup is not a price increase. It’s a way of representing data using a particular type of scripting…
Python TypeError: ‘builtin_function_or_method’ object is not subscriptable Solution
To call a built-in function, you need to use parentheses. Parentheses distinguish function calls from other operations that can be performed on some objects, like indexing. If you try to use square brackets to call a built-in function, you’ll encounter…
Python TypeError: ‘NoneType’ object is not subscriptable Solution
Python objects with the value None cannot be accessed using indexing. This is because None values do not contain data with index numbers. If you try to access an item from a None value using indexing, you encounter a “TypeError:…
Python TypeError: list indices must be integers, not tuple Solution
Lists are indexed using numbers. This means if you want to access an item from a list, you have to refer to its index position. If you specify a tuple as a list index value, you encounter the “TypeError: list…
Python: Read Text File into List
Storing data in files lets you keep a record of the data with which a program is working. This means you don’t have to generate data over again when working with a program. You just read that data from a…
Python TypeError: object of type ‘NoneType’ has no len() Solution
The len() method only works on iterable objects such as strings, lists, and dictionaries. This is because iterable objects contain sequences of values. If you try to use the len() method on a None value, you’ll encounter the error “TypeError:…
Python TypeError: can only concatenate list (not “int”) to list Solution
Lists can be concatenated to other lists. This means you can add the contents of one list to another list. Values with other data types, such as integers, cannot be concatenated to a list. If you try to concatenate an…
Python typeerror: ‘float’ object is not subscriptable Solution
Values inside a float cannot be accessed using indexing syntax. This means that you cannot retrieve an individual number from a float. Otherwise, you’ll encounter a “typeerror: ‘float’ object is not subscriptable” in your program. In this guide, we talk…
What Is a Database Schema?
In this guide, we’re going to talk about what a database schema is and why they are used. We’ll also walk through an example so you can see what developers mean when they are talking about a database schema. As…
Analytical Skills for Your Resume
If you’re reading over a description for a job, you may have come across a requirement such as “Possesses strong analytical skills.” This may leave you wondering: what are analytical skills, and how can I showcase them on my resume?…
STAR Interview Method: Ace Your Next Interview
You are in a job interview and you have been doing well so far. Then, as you start to build up your confidence, the interviewer puts you on the spot: “Tell me about a time when…” This type of question…
How to Use JavaScript Functions: A Step-By-Step Guide
JavaScript functions are custom blocks of code that can be reused. Functions allow code to be more modular and are essential to object-oriented programming. Functions can be defined through declarations or expressions. If you’re trying to learn JavaScript and looking…
Python TypeError: ‘float’ object is not callable Solution
Floating-point values are not callable. This is because floating points store numerical values. They are not functions that return a particular value when called. If you try to call a floating-point value as if it were a function, you encounter…
Python TypeError: can’t multiply sequence by non-int of type ‘str’ Solution
You can multiply two numbers together in Python. You can also multiply a number by a string. This returns a sequence of a string that repeats a specific number of times. If you try to multiply a string by another…
Python valueerror: could not convert string to float Solution
Python can only convert a valid numerical value to a floating point value. If you try to convert a value that contains a comma, spaces, or certain characters, you encounter an error that says “valueerror: could not convert string to…
Python TypeError: ‘NoneType’ object has no attribute ‘append’ Solution
The Python append() method returns a None value. This is because appending an item to a list updates an existing list. It does not create a new one. If you try to assign the result of the append() method to…
Python: How to Round to Two Decimal Places
How do you round a value to two decimal places in Python? That’s an excellent question. Luckily for you, Python offers a few functions that let you round numbers. Rounding numbers to two decimal places is common. Money only uses…
CSS Font-Size: A Tutorial on Text Sizing in CSS
The CSS font-size property sets the font size of any text element on your page or website. The font-size property can be applied to any class, ID, or element that includes text content. The property accepts values in px, em,…
Python isalpha, isnumeric, and isAlnum: A Guide
The Python isalpha() method returns true if a string only contains letters. Python isnumeric() returns true if all characters in a string are numbers. Python isalnum() only returns true if a string contains alphanumeric characters, without symbols. When you’re working…
What Does %s Mean in Python?
Do you want to add a value into a Python string? You need not look further than the %s operator. This operator lets you format a value inside a string. The %s syntax is more elegant than the concatenation operator…
Python SyntaxError: unexpected character after line continuation character Solution
The Python line continuation character lets you continue a line of code on a new line in your program. The line continuation character cannot be followed by any value. If you specify a character or statement after a line continuation…
Organizational Skills for Your Resume (With Examples)
Organizational skills are one of the most common types of skills that employers look for in candidates for a job. Whether you want to be a software engineer or a digital marketer, staying organized and maintaining order in your work…
Python Array: A Step-By-Step Guide
Python arrays are a data structure like lists. They contain a number of objects that can be of different data types. In addition, Python arrays can be iterated and have a number of built-in functions to handle them. Python has…
Python TypeError: ‘NoneType’ object is not iterable Solution
With Python, you can only iterate over an object if that object has a value. This is because iterable objects only have a next item which can be accessed if their value is not equal to None. If you try…
Python Queue and Deque: A Step-By-Step Guide
Python queue is a built in library that allows you to create a list that uses the FIFO rule, first in first out. Python deque uses the opposite rule, LIFO queue, or last in first out. Both operate on stacks…
Python Reverse List: A Step-by-Step Tutorial
You can reverse a list in Python using the built-in reverse() or reversed() methods. These methods will reverse the list without creating a new list. Python reverse() and reversed() will reverse the elements in the original list object. Reversing a…