Explore your training options and get exclusive tuition discounts Get Started

X

Back

James Gallagher

Technical Content Manager

James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.

Python typeerror: not all arguments converted during string formatting
Python is a stickler for the rules. One of the main features of the Python language keeps you in check so that your programs work in the way that you intend. You may encounter an error saying “not all arguments…
Amazon Software Engineer Salary
Customer satisfaction and good customer service are at the core of Amazon’s approach to building new products. It’s these principles that help Amazon nurture innovation through its teams of software engineers. You may be wondering what an Amazon software engineer salary might…
Python positional argument follows keyword argument Solution
In Python, there are two types of arguments: positional and keyword arguments. These arguments must appear in a particular order otherwise the Python interpreter returns an error. In this guide, we’re going to talk about the “positional argument follows keyword…
Remove Punctuation Python: A Guide
How to Remove Punctuation from a Python String There are a lot of cases where you may need to remove punctuation from a string. You may want to remove any punctuation from a string number that a user inserts into…
Java Quicksort: A Beginner’s Guide
It can be difficult to wrap your head around the quicksort sorting algorithm. It’s not as intuitive as other sorts like an insertion sort or a bubble sort. Quicksorts are an efficient way of sorting smaller lists. In this guide,…
SQL Constraints: A Beginner’s Guide
One of the great features of databases is that they can restrict the types of values stored in a particular column. This means that you don’t need to validate every value before you try to insert it into a database.…
Python indexerror: list assignment index out of range Solution
An IndexError is nothing to worry about. It’s an error that is raised when you try to access an index that is outside of the size of a list. How do you solve this issue? Where can it be raised?…
Python typeerror: ‘int’ object is not subscriptable Solution
Some objects in Python are subscriptable. This means that they contain, or can contain, other objects. Integers are not a subscriptable object. They are used to store whole numbers. If you treat an integer like a subscriptable object, an error…
Python indexerror: list index out of range Solution
IndexErrors are one of the most common types of runtime errors in Python. They’re raised when you try to access an index value inside a Python list that does not exist. In most cases, index errors are easy to resolve.…
Python nameerror name is not defined Solution
NameErrors are one of the most common types of Python errors. When you’re first getting started, these errors can seem intimidating. They’re not too complicated. A NameError means that you’ve tried to use a variable that does not yet exist.…
Python syntaxerror: EOL while scanning string literal Solution
Even the best developers make syntax errors all the time when they’re coding. Programming languages have so many rules and even one typo can cause an error. If you’ve encountered the error “syntaxerror: EOL while scanning string literal”, don’t worry.…
Python typeerror: string indices must be integers Solution
In Python, iterable objects are indexed using numbers. When you try to access an iterable object using a string value, an error will be returned. This error will look something like “TypeError: string indices must be integers”. In this guide,…
Python typeerror: can’t multiply sequence by non-int of type ‘float’ Solution
While strings can be multiplied by integers to create a repeating sequence, strings cannot be multiplied by floats. Otherwise, Python returns an error. In this article, we’re going to talk about the “typeerror: can t multiply sequence by non-int of…
Python typeerror: a bytes-like object is required, not ‘str’ Solution
TypeErrors happen all of the time in Python. This type of error is raised when you try to apply a function to a value that does not support that function. For example, trying to iterate over a number raises a…
Python typeerror: ‘int’ object is not iterable Solution
Encountering an error is not a problem; it’s a learning opportunity. While developing in Python, you may have seen an error “‘int’ object is not iterable”. What does this mean? How do I solve it? Those are the questions we’re…
Python typeerror: list indices must be integers or slices, not str Solution
String indices must be integers or slices, not strings? What does this error mean? It’s a TypeError, which tells us that we are trying to perform an operation on a value whose type is not compatible with the operation. What’s…
Python typeerror: can only concatenate str (not “int”) to str Solution
You’ve just started writing a Python program and then it hits you: a TypeError. This one’s new to you: "typeerror: can only concatenate str (not "int") to str". What does it mean? Why is it being raised in your code?…
Python ‘str’ object does not support item assignment solution
Strings in Python are immutable. This means that they cannot be changed. If you try to change the contents of an existing string, you're liable to find an error that says something like "'str' object does not support item assignment".…
Fibonacci Java: A Guide
A Guide to the Fibonacci Java Algorithm The Fibonacci Sequence is a sequence where the next number is calculated by calculating the sum of the previous two numbers. This sequence has its claim to fame in mathematics. It also appears…
8 Signs That Your Job Interview Went Well
In this guide, we’re going to discuss eight signs an interview went well. These may signal you are going to advance to the next stage of the interview process. “How did I do in my job interview?” is one of…
How to Sort a Dictionary by Value in Python
To sort a dictionary by value in Python you can use the sorted() function. Python’s sorted() function can be used to sort dictionaries by key, which allows for a custom sorting method. sorted() takes three arguments: object, key, and reverse.…
JavaScript Timestamp: A Step-By-Step Guide
To get a JavaScript timestamp format can be achieved using the Date() object, which holds the current time in a readable timestamp format. You can also create new Date() objects with different timestamps, and get the current Unix time using…
Top 15 React JS Interview Questions
React has grown significantly in popularity over the last few years. According to Stack Overflow’s 2019 Developer Survey, which studied the tools and development practices used by over 90,000 programmers, React.js was the second most popular web framework among respondents. …
Java String replace() Method: A Step-By-Step Guide
The Java string replace() method will replace a character or substring with another character or string. The syntax for the replace() method is string_name.replace(old_string, new_string) with old_string being the substring you’d like to replace and new_string being the substring that…
How to Respond to an Interview Request
So, you have just heard back from an employer who is interested in bringing you in for an interview? Congratulations — that’s a big accomplishment! If an employer asks to interview you, it means they think you could be a good fit…
How to Use the SQL INSERT Statement
Have you ever wondered how data is added to a database? Behind every record in a database is an INSERT INTO statement. Without this statement, databases could not store data! In this guide, we’re going to talk about what the…
How to Use the SQL SELECT Statement
Databases do not just store information, they make data easily accessible. With a little help from the SELECT statement, you can retrieve any set of values from a database that you need. In this guide, we’re going to discuss what…
How to Code the Fibonacci Sequence in Python
The Fibonacci Sequence is one of the most famous sequences in mathematics. It’s quite simple to calculate: each number in the sequence is the sum of the previous two numbers. This sequence has found its way into programming. Often, it…
How to Use Python Environment Variables
When you’re developing across different environments, you may want to specify different configuration values for each environment. The computer on which you developed an application will not be the same as the one on which you deploy an application. That’s…
Git Submodules: A Guide
How to Use Git Submodules As a Git repository grows in size, you’ll probably find yourself depending on other repositories. A blog project may depend on another repository that stores the code for a particular theme. A software project may…
Start your Tech training
Find, compare, and enroll in the right training program. Save on Tuition.
View my matches