Explore your training options in 10 minutes

X

Back

Global navigation

Learn Python

Python is a popular programming language used to develop websites, analyze data, and automate tasks. These various Python articles provide information on courses, resources, books, and communities to help you learn this coding language. There is also a handy glossary of Python terminology, quizzes and exercises, and specific resources for various career paths.

Python ‘numpy.ndarray’ object is not callable Solution
Like any regular Python array, you can access the contents of a NumPy array using indexing. The indexing method, which uses square brackets, lets you see one item in a list or a particular part of a list. If you…
Python Check If List Is Empty
There are several ways to check if a list is empty. The first one covered below, if list returns as false, is the most pythonic. In other words, it is the one people recommend the most in Python. The other…
Python Convert List to String: A How-To Guide
Suppose you are building an application that shows the grades a student has earned on a test. These grades are stored in a list but you want to present them as a string. How would you go about doing that?…
Python AttributeError: ‘numpy.ndarray’ object has no attribute ‘append’ Solution
In regular Python, you can use the append() method to add an item to the end of a list. You cannot use this method in NumPy. If you try to use the Python append() method to add an item to…
Python Copy File: A How to Guide
You may need to copy a file in a number of programs. Imagine if you wanted to build a logging function for your program that begins with a predefined set of text. You could create a copy of an existing…
Python ValueError: math domain error Solution
In mathematics, there are operations which do not work on negative numbers or zero numbers. Consider the square root, for example. You cannot find the square root of a negative number. Python recognizes that not all operations work with negative…
Python ValueError: list.remove(x): x not in list Solution
You cannot remove an item from a list if it does not appear in said list. The Python error ValueError: list.remove(x): x not in list tells you the item you want to remove does not appear in the list. In this…
Python JSONDecodeError Explanation and Solution
Many developers store data from a program in a JSON file; other programs reference APIs which require working with JSON. Indeed, you will have no trouble finding a use case for JSON, or its Python equivalent, dictionaries. You may encounter…
Python FileNotFoundError: [Errno 2] No such file or directory Solution
In most cases, any file you reference in a Python program needs to exist. This is, of course, unless you are creating a new file and writing to it. If you reference a file that does not exist, Python will…
Python sqrt(): A How-To Guide
Unless you’re a math genius, you don’t have all square roots memorized. And even if you did, someone else looking at your code may not know that you are. That means they might have to re-check that you wrote the…
How to Use Python extend()
Let’s say that you are going to have a party, and you have a list of friends that you are going to invite. This list may grow as you think of people you want to invite.  This is where the…
‘Python’ is not recognized as an internal or external command, operable program or batch file
Python is one of the most used programming languages today, and given its popularity, it’s no wonder you are eager to start coding with it.  If you just installed Python on Windows, you may run into an issue in the…
Python pip: A Complete Guide
You have probably seen the pip command somewhere in the Python documentation. If you have ever stumbled across any third-party library in Python, you know that the first line mentions the pip command. This one command plays a key role…
Python print(): A Complete Guide
Suppose you have a variable in a Python program. You may want to know the content that the variable points to, to be able to figure out whether your program is running as planned. Or, when you are writing a…
NumPy: Courses, Trainings, and Other Resources
The Python framework is often used for data analysis and manipulation. But, Python does not out-of-the-box offer any advanced tools for these tasks. Lists in Python are very complex data structures, and they take a major hit in performance when…
How to Learn Matplotlib
Are you interested in data science or data analysis as a new career? Perhaps you are a marketer who wants to present your findings on customer behavior to your team. Matplotlib, a plotting library for Python, can help you support…
How to Learn Pandas
Pandas is a Python library that allows you to work with data that is organized using rows and columns sometimes called “tabular data”. You’ve probably used a spreadsheet like Excel to manipulate tabular data. The beauty of Pandas is that…
Python Regex: An Introduction to Using Regular Expressions
As a new developer, regular expressions (or regex as it’s commonly known), can be daunting because of the strange, unfamiliar syntax:     ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$ When I was a new developer and saw the expression above for the first time, I remember…
Learn Raspberry Pi: The Best Raspberry Pi Resources Online
Modern computing is becoming more compact. The introduction of super-compact chipsets like Raspberry Pi and Arduino Mega makes it possible to run computers with the size of a credit card. In this ever-changing world of optimization and high performance, it…
Python Index: A Step-By-Step Guide
The Python index() method returns the index position at which an item is found in a list or a string. index() returns the lowest resulting index for the item. A ValueError is returned if the specified item does exist in…
Python Average: A Step-by-Step Guide
There are two ways to find the average of a list of numbers in Python. You can divide the sum() by the len() of a list of numbers to find the average. Or, you can find the average of a…
Python Pass: A How to Guide
The Python pass statement is a placeholder keyword. It is used in empty code blocks such as a for or if statement to prevent against a syntax error. Python recognizes the section of code in which a pass statement is…
Python List Comprehension: A How-To Guide
A Python list comprehension is a way of creating a list based on an existing list. List comprehensions are commonly used to filter items out of a list or to change the values in an existing list. List comprehensions are…
Python Remove Key from a Dictionary: A Complete Guide
The Python pop() method and del keyword remove keys from a dictionary. pop() accepts the name of the key you want to remove from the dictionary as an argument. The del keyword stands on its own and refers to a…
Python insert(): A Complete Guide
The Python insert() method adds an item to a list. This method accepts two arguments: the position at which you want to add the item, and the item you want to add. Suppose you have a list of student names,…
Python Dictionary Keys: A Complete Guide
The Python dictionary keys() method returns an object which contains the keys in a dictionary. You can use the list() method to convert the object into a list. The syntax for the keys() method is: dictionary.keys(). You may want to…
Python Convert List to Dictionary: A Complete Guide
You can convert a Python list to a dictionary using a dictionary comprehension, dict.fromkeys(), or the zip() method. All three methods create a new dictionary. They do not modify the existing list. Python lists and dictionaries are two structures used…
Replace Item in List in Python: A Complete Guide
There are three ways to replace an item in a Python list. You can use list indexing or a for loop to replace an item. If you want to create a new list based on an existing list and make…
Python Dictionary Values: A Guide
The Python dictionary values() method returns an object containing the values in a dictionary. This method is useful if you want to iterate over only the values in the dictionary. If you change a dictionary later, the data stored in…
Fun Python Projects for Beginners to Try in 2021
To become a skilled programmer, you need to practice. There are many fun and exciting Python projects for beginners. These projects allow you to create something useful while learning this fun programming language. Books and videos can only bring your…
Ad
At Career Karma, our mission is to empower users to make confident decisions by providing a trustworthy and free directory of bootcamps and career resources. We believe in transparency and want to ensure that our users are aware of how we generate revenue to support our platform.

Career Karma recieves compensation from our bootcamp partners who are thoroughly vetted before being featured on our website. This commission is reinvested into growing the community to provide coaching at zero cost to their members.

It is important to note that our partnership agreements have no influence on our reviews, recommendations, or the rankings of the programs and services we feature. We remain committed to delivering objective and unbiased information to our users.

In our bootcamp directory, reviews are purely user-generated, based on the experiences and feedback shared by individuals who have attended the bootcamps. We believe that user-generated reviews offer valuable insights and diverse perspectives, helping our users make informed decisions about their educational and career journeys.
Find the right bootcamp for you
X
GET MATCHED
By continuing you agree to our Terms of Service and Privacy Policy, and you consent to receive offers and opportunities from Career Karma by telephone, text message, and email.
X
By continuing you agree to our Terms of Service and Privacy Policy, and you consent to receive offers and opportunities from Career Karma by telephone, text message, and email.