<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python Glossary on Python Beginner Help</title><link>https://pythonbeginner.help/glossary/</link><description>Recent content in Python Glossary on Python Beginner Help</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://pythonbeginner.help/glossary/index.xml" rel="self" type="application/rss+xml"/><item><title>What Is a Boolean in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-boolean-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-boolean-in-python/</guid><description>&lt;h1 id="what-is-a-boolean-in-python"&gt;What Is a Boolean in Python?&lt;/h1&gt;
&lt;p&gt;A Boolean in Python is a value that can only be &lt;code&gt;True&lt;/code&gt; or &lt;code&gt;False&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Beginners see Booleans very early because Python uses them to make decisions. For example, a program might check whether a user is logged in, whether a number is greater than another number, or whether a list has any items.&lt;/p&gt;
&lt;p&gt;If you are new to Python, this page will help you understand what Booleans are, where they come from, and how they are used in simple &lt;code&gt;if&lt;/code&gt; statements.&lt;/p&gt;</description></item><item><title>What Is a Class in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-class-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-class-in-python/</guid><description>&lt;h1 id="what-is-a-class-in-python"&gt;What Is a Class in Python?&lt;/h1&gt;
&lt;p&gt;A class in Python is a blueprint for creating objects.&lt;/p&gt;
&lt;p&gt;If that sounds abstract, think of it this way:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A class describes what something has&lt;/li&gt;
&lt;li&gt;A class also describes what something can do&lt;/li&gt;
&lt;li&gt;The actual thing you create from that description is called an object&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Classes help you group data and behavior in one place. In Python, the data is usually stored in &lt;strong&gt;attributes&lt;/strong&gt;, and the actions are defined with &lt;strong&gt;methods&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>What Is a Data Type in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-data-type-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-data-type-in-python/</guid><description>&lt;h1 id="what-is-a-data-type-in-python"&gt;What Is a Data Type in Python?&lt;/h1&gt;
&lt;p&gt;A data type in Python tells Python what kind of value you are working with.&lt;/p&gt;
&lt;p&gt;For example, a value might be:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;text&lt;/li&gt;
&lt;li&gt;a whole number&lt;/li&gt;
&lt;li&gt;a decimal number&lt;/li&gt;
&lt;li&gt;&lt;code&gt;True&lt;/code&gt; or &lt;code&gt;False&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Data types matter because they affect what you can do with a value. Python uses them to decide how values are stored and how operations should behave.&lt;/p&gt;
&lt;h2 id="what-a-data-type-means"&gt;What a data type means &lt;a class="heading-anchor" href="#what-a-data-type-means" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A data type describes the kind of value you are using.&lt;/p&gt;</description></item><item><title>What Is a Dictionary in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-dictionary-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-dictionary-in-python/</guid><description>&lt;h1 id="what-is-a-dictionary-in-python"&gt;What Is a Dictionary in Python?&lt;/h1&gt;
&lt;p&gt;A dictionary in Python is a way to store related data using &lt;strong&gt;keys&lt;/strong&gt; and &lt;strong&gt;values&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This is useful when your data has labels. For example, a person can have a &lt;strong&gt;name&lt;/strong&gt;, &lt;strong&gt;age&lt;/strong&gt;, and &lt;strong&gt;city&lt;/strong&gt;. Instead of storing those values by position, a dictionary stores them by name.&lt;/p&gt;
&lt;p&gt;This page explains the basic idea of a dictionary, what it stores, and when to use one.&lt;/p&gt;</description></item><item><title>What Is a Float in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-float-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-float-in-python/</guid><description>&lt;h1 id="what-is-a-float-in-python"&gt;What Is a Float in Python?&lt;/h1&gt;
&lt;p&gt;A &lt;strong&gt;float&lt;/strong&gt; in Python is a number that can include a decimal point. Beginners often use floats for values like &lt;code&gt;3.14&lt;/code&gt;, &lt;code&gt;2.5&lt;/code&gt;, or &lt;code&gt;-0.75&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Floats are useful when you need numbers that are not just whole numbers. For example, you might use them for measurements, prices in simple examples, or division results.&lt;/p&gt;
&lt;p&gt;This page explains what the term &lt;strong&gt;float&lt;/strong&gt; means, how it looks in Python, and how it differs from an integer.&lt;/p&gt;</description></item><item><title>What Is a Function in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-function-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-function-in-python/</guid><description>&lt;h1 id="what-is-a-function-in-python"&gt;What Is a Function in Python?&lt;/h1&gt;
&lt;p&gt;A function in Python is a reusable block of code that does a specific task. You can run it when needed, and it can optionally send a value back.&lt;/p&gt;
&lt;p&gt;Functions are one of the main ways to organize code. They help you group related steps together and avoid writing the same code again and again.&lt;/p&gt;
&lt;h2 id="simple-definition"&gt;Simple definition &lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A function is:&lt;/p&gt;</description></item><item><title>What Is a Generator in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-generator-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-generator-in-python/</guid><description>&lt;h1 id="what-is-a-generator-in-python"&gt;What Is a Generator in Python?&lt;/h1&gt;
&lt;p&gt;A generator in Python is an object that produces values one at a time, only when they are needed.&lt;/p&gt;
&lt;p&gt;This is useful because Python does not have to create and store every value at once. For beginners, the main idea is simple: a generator lets you work through data step by step instead of building a full list immediately.&lt;/p&gt;
&lt;p&gt;Generators are commonly created with a function that uses &lt;code&gt;yield&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>What Is a Lambda Function in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-lambda-function-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-lambda-function-in-python/</guid><description>&lt;h1 id="what-is-a-lambda-function-in-python"&gt;What Is a Lambda Function in Python?&lt;/h1&gt;
&lt;p&gt;A lambda function in Python is a small function written in one line.&lt;/p&gt;
&lt;p&gt;Beginners usually see lambda functions in examples with sorting, &lt;code&gt;map()&lt;/code&gt;, or &lt;code&gt;filter()&lt;/code&gt;. They are useful for short tasks, but they are not a replacement for normal functions.&lt;/p&gt;
&lt;p&gt;A lambda function works like a regular function. The main difference is that it is written in a shorter form.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;square&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;square&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Output:&lt;/p&gt;</description></item><item><title>What Is a List Comprehension in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-list-comprehension-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-list-comprehension-in-python/</guid><description>&lt;h1 id="what-is-a-list-comprehension-in-python"&gt;What Is a List Comprehension in Python?&lt;/h1&gt;
&lt;p&gt;A list comprehension is a short, readable way to create a new list in Python.&lt;/p&gt;
&lt;p&gt;It lets you combine a loop and the value you want to build inside square brackets. Beginners often use it to transform data, such as squaring numbers, or to filter data, such as keeping only even numbers.&lt;/p&gt;
&lt;p&gt;Here is a simple example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;squares&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;squares&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# [1, 4, 9, 16]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;A list comprehension creates a new list in one line from another iterable.&lt;/p&gt;</description></item><item><title>What Is a List in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-list-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-list-in-python/</guid><description>&lt;h1 id="what-is-a-list-in-python"&gt;What Is a List in Python?&lt;/h1&gt;
&lt;p&gt;A list in Python is a beginner-friendly way to store multiple values in one variable. This page explains what a list is, what it is used for, and how to recognize one when you see it.&lt;/p&gt;
&lt;p&gt;If you are just getting started, the main idea is simple: a list lets you keep related items together in order. For example, you might use a list for names, scores, or file paths.&lt;/p&gt;</description></item><item><title>What Is a Loop in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-loop-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-loop-in-python/</guid><description>&lt;h1 id="what-is-a-loop-in-python"&gt;What Is a Loop in Python?&lt;/h1&gt;
&lt;p&gt;A loop in Python is a way to repeat code.&lt;/p&gt;
&lt;p&gt;This is useful when you want to do the same task more than once. Instead of writing the same line again and again, you can write a loop once and let Python repeat it for you.&lt;/p&gt;
&lt;p&gt;Python mainly has two loop types:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;for&lt;/code&gt; loops&lt;/li&gt;
&lt;li&gt;&lt;code&gt;while&lt;/code&gt; loops&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This page gives the basic idea of loops. It does not fully teach loop syntax.&lt;/p&gt;</description></item><item><title>What Is a Method in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-method-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-method-in-python/</guid><description>&lt;h1 id="what-is-a-method-in-python"&gt;What Is a Method in Python?&lt;/h1&gt;
&lt;p&gt;A method in Python is a function that belongs to an object.&lt;/p&gt;
&lt;p&gt;You use methods all the time in Python, even in simple code like:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Ada&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;upper&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In this example, &lt;code&gt;upper()&lt;/code&gt; is a method of a string object.&lt;/p&gt;
&lt;p&gt;Understanding methods helps you read Python code more easily. It also helps you know why some actions are written as &lt;code&gt;object.method()&lt;/code&gt; while others are written as regular functions like &lt;code&gt;len(object)&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>What Is a Module in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-module-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-module-in-python/</guid><description>&lt;h1 id="what-is-a-module-in-python"&gt;What Is a Module in Python?&lt;/h1&gt;
&lt;p&gt;A &lt;strong&gt;module&lt;/strong&gt; in Python is a file that contains code you can reuse.&lt;/p&gt;
&lt;p&gt;That file can contain:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;functions&lt;/li&gt;
&lt;li&gt;variables&lt;/li&gt;
&lt;li&gt;classes&lt;/li&gt;
&lt;li&gt;import statements&lt;/li&gt;
&lt;li&gt;code that runs when the file is imported or executed&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You use a module by &lt;strong&gt;importing&lt;/strong&gt; it into another Python file.&lt;/p&gt;
&lt;p&gt;A simple way to think about it is this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;one file stores useful code&lt;/li&gt;
&lt;li&gt;another file uses that code&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This page explains what a module is and why it matters. If you want the full mechanics of &lt;code&gt;import&lt;/code&gt;, see &lt;a href="https://pythonbeginner.help/learn/how-import-works-in-python/"&gt;how import works in Python&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>What Is a Package in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-package-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-package-in-python/</guid><description>&lt;h1 id="what-is-a-package-in-python"&gt;What Is a Package in Python?&lt;/h1&gt;
&lt;p&gt;A &lt;strong&gt;package&lt;/strong&gt; in Python is a way to organize related code.&lt;br&gt;
In simple terms, a package is usually a &lt;strong&gt;folder&lt;/strong&gt; that contains Python modules and sometimes other package folders.&lt;/p&gt;
&lt;p&gt;This helps keep code grouped in a clear structure instead of putting everything into one large file.&lt;/p&gt;
&lt;p&gt;Beginners often use packages before they know the term. For example, when you write an &lt;code&gt;import&lt;/code&gt; statement, you may already be using a module that belongs to a package.&lt;/p&gt;</description></item><item><title>What Is a Parameter in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-parameter-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-parameter-in-python/</guid><description>&lt;h1 id="what-is-a-parameter-in-python"&gt;What Is a Parameter in Python?&lt;/h1&gt;
&lt;p&gt;A &lt;strong&gt;parameter&lt;/strong&gt; in Python is a variable written inside the parentheses of a function definition.&lt;/p&gt;
&lt;p&gt;It acts like a placeholder. When you call the function later, Python gives that parameter a value.&lt;/p&gt;
&lt;p&gt;This page focuses on the basic idea:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;what a parameter is&lt;/li&gt;
&lt;li&gt;where it appears&lt;/li&gt;
&lt;li&gt;how it is different from an argument&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It is not a full guide to writing functions. If you want the bigger picture, see &lt;a href="https://pythonbeginner.help/learn/python-functions-explained/"&gt;Python Functions Explained&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>What Is a Return Value in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-return-value-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-return-value-in-python/</guid><description>&lt;h1 id="what-is-a-return-value-in-python"&gt;What Is a Return Value in Python?&lt;/h1&gt;
&lt;p&gt;A &lt;strong&gt;return value&lt;/strong&gt; is the result a function sends back after it finishes running.&lt;/p&gt;
&lt;p&gt;This is an important Python idea because functions often do work and then give the answer back to the code that called them. A beginner mistake is thinking that &lt;code&gt;print()&lt;/code&gt; and &lt;code&gt;return&lt;/code&gt; do the same thing. They do not.&lt;/p&gt;
&lt;p&gt;Use &lt;code&gt;return&lt;/code&gt; when a function should give a result back to your program:&lt;/p&gt;</description></item><item><title>What Is a Set in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-set-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-set-in-python/</guid><description>&lt;h1 id="what-is-a-set-in-python"&gt;What Is a Set in Python?&lt;/h1&gt;
&lt;p&gt;A set in Python is a collection of unique values. This page helps beginners understand what a set is, when to use it, and how it is different from other collection types.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;colors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;set&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;red&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;blue&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;red&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;colors&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;What this does:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The first line creates a set with duplicate &lt;code&gt;3&lt;/code&gt;, but the duplicate is removed.&lt;/li&gt;
&lt;li&gt;The second example uses &lt;code&gt;set()&lt;/code&gt; to convert a list into a set.&lt;/li&gt;
&lt;li&gt;In both cases, only unique values remain.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Possible output:&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>What Is a String in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-string-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-string-in-python/</guid><description>&lt;h1 id="what-is-a-string-in-python"&gt;What Is a String in Python?&lt;/h1&gt;
&lt;p&gt;A string in Python is a value used to store text.&lt;/p&gt;
&lt;p&gt;Beginners use strings all the time. A string can hold:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A word&lt;/li&gt;
&lt;li&gt;A sentence&lt;/li&gt;
&lt;li&gt;A number written as text&lt;/li&gt;
&lt;li&gt;Even empty text like &lt;code&gt;&amp;quot;&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Python knows something is a string when it is written inside quotes. This page defines the term clearly and shows where strings are commonly used.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Alice&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;&amp;#39;Hello&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Output:&lt;/p&gt;</description></item><item><title>What Is a Tuple in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-tuple-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-tuple-in-python/</guid><description>&lt;h1 id="what-is-a-tuple-in-python"&gt;What Is a Tuple in Python?&lt;/h1&gt;
&lt;p&gt;A tuple in Python is a way to store multiple values in a single variable.&lt;/p&gt;
&lt;p&gt;Tuples are &lt;strong&gt;ordered collections&lt;/strong&gt;, which means the items stay in the same position. They are usually used for data that should not change after it is created.&lt;/p&gt;
&lt;p&gt;You will often see tuples written with parentheses, like this:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If you want a deeper lesson, see &lt;a href="https://pythonbeginner.help/learn/python-tuples-explained/"&gt;Python tuples explained&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="simple-definition"&gt;Simple definition &lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A tuple is a collection of values stored together.&lt;/p&gt;</description></item><item><title>What Is a Variable in Python?</title><link>https://pythonbeginner.help/glossary/what-is-a-variable-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-a-variable-in-python/</guid><description>&lt;h1 id="what-is-a-variable-in-python"&gt;What Is a Variable in Python?&lt;/h1&gt;
&lt;p&gt;A variable in Python is a name that refers to a value.&lt;/p&gt;
&lt;p&gt;You use variables to store data and use it later in your code. For example, you can store a person&amp;rsquo;s name, an age, a price, or a &lt;code&gt;True&lt;/code&gt;/&lt;code&gt;False&lt;/code&gt; value in a variable.&lt;/p&gt;
&lt;p&gt;In Python, you create a variable by assigning a value with &lt;code&gt;=&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Sam&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;age&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Output:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;Sam&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="mi"&gt;12&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In this example:&lt;/p&gt;</description></item><item><title>What Is an Argument in Python?</title><link>https://pythonbeginner.help/glossary/what-is-an-argument-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-an-argument-in-python/</guid><description>&lt;h1 id="what-is-an-argument-in-python"&gt;What Is an Argument in Python?&lt;/h1&gt;
&lt;p&gt;An &lt;strong&gt;argument&lt;/strong&gt; in Python is a value you pass to a function when you call it.&lt;/p&gt;
&lt;p&gt;This helps the function work with real data. For example, a function can greet different people, add different numbers, or print different messages based on the arguments you give it.&lt;/p&gt;
&lt;p&gt;A common beginner confusion is the difference between &lt;strong&gt;arguments&lt;/strong&gt; and &lt;strong&gt;parameters&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Parameters&lt;/strong&gt; are the names written in the function definition.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Arguments&lt;/strong&gt; are the actual values passed into the function call.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Hello&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;Sam&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;&amp;quot;Sam&amp;quot;&lt;/code&gt; is the &lt;strong&gt;argument&lt;/strong&gt;. It is the value passed to the function.&lt;/p&gt;</description></item><item><title>What Is an Exception in Python?</title><link>https://pythonbeginner.help/glossary/what-is-an-exception-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-an-exception-in-python/</guid><description>&lt;h1 id="what-is-an-exception-in-python"&gt;What Is an Exception in Python?&lt;/h1&gt;
&lt;p&gt;An exception in Python is a problem that happens &lt;strong&gt;while your program is running&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;When an exception happens, Python usually stops the normal flow of the program and shows an error message. In many cases, you can also &lt;strong&gt;handle&lt;/strong&gt; the exception so your program responds in a better way instead of crashing.&lt;/p&gt;
&lt;p&gt;A simple way to think about it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Your code starts running normally&lt;/li&gt;
&lt;li&gt;Something unexpected happens&lt;/li&gt;
&lt;li&gt;Python raises an exception&lt;/li&gt;
&lt;li&gt;You can either let it stop the program or handle it with &lt;code&gt;try&lt;/code&gt; and &lt;code&gt;except&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="a-quick-example"&gt;A quick example &lt;a class="heading-anchor" href="#a-quick-example" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Here is a small example of an exception being handled:&lt;/p&gt;</description></item><item><title>What Is an if Statement in Python?</title><link>https://pythonbeginner.help/glossary/what-is-an-if-statement-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-an-if-statement-in-python/</guid><description>&lt;h1 id="what-is-an-if-statement-in-python"&gt;What Is an if Statement in Python?&lt;/h1&gt;
&lt;p&gt;An &lt;code&gt;if&lt;/code&gt; statement in Python lets your program make a decision.&lt;/p&gt;
&lt;p&gt;It checks a condition. If that condition is &lt;code&gt;True&lt;/code&gt;, Python runs the code inside the &lt;code&gt;if&lt;/code&gt; block. If the condition is &lt;code&gt;False&lt;/code&gt;, Python skips that code.&lt;/p&gt;
&lt;p&gt;This is one of the most important ideas in Python because it helps programs respond to different situations.&lt;/p&gt;
&lt;h2 id="quick-example"&gt;Quick example &lt;a class="heading-anchor" href="#quick-example" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;18&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;age&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;18&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;You can vote&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Output:&lt;/p&gt;</description></item><item><title>What Is an Integer in Python?</title><link>https://pythonbeginner.help/glossary/what-is-an-integer-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-an-integer-in-python/</guid><description>&lt;h1 id="what-is-an-integer-in-python"&gt;What Is an Integer in Python?&lt;/h1&gt;
&lt;p&gt;An integer in Python is a whole number. It does not have a decimal point.&lt;/p&gt;
&lt;p&gt;Examples of integers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;-3&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;7&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;42&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In Python, the type name for an integer is &lt;code&gt;int&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you are new to Python, integers are one of the most common &lt;a href="https://pythonbeginner.help/glossary/what-is-a-data-type-in-python/"&gt;data types in Python&lt;/a&gt;. You will use them for counting, indexing, loops, and simple math.&lt;/p&gt;
&lt;h2 id="definition"&gt;Definition &lt;a class="heading-anchor" href="#definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;An integer is:&lt;/p&gt;</description></item><item><title>What Is an Iterable in Python?</title><link>https://pythonbeginner.help/glossary/what-is-an-iterable-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-an-iterable-in-python/</guid><description>&lt;h1 id="what-is-an-iterable-in-python"&gt;What Is an Iterable in Python?&lt;/h1&gt;
&lt;p&gt;An &lt;strong&gt;iterable&lt;/strong&gt; is an object that Python can go through one value at a time.&lt;/p&gt;
&lt;p&gt;You will see iterables all the time in Python. They are used in &lt;code&gt;for&lt;/code&gt; loops, in built-in functions like &lt;code&gt;sum()&lt;/code&gt; and &lt;code&gt;sorted()&lt;/code&gt;, and in many common tasks such as reading files or unpacking values.&lt;/p&gt;
&lt;p&gt;A big reason beginners should learn this word is that many errors and examples make more sense once you know what an iterable is. It also helps you understand the difference between an &lt;strong&gt;iterable&lt;/strong&gt; and an &lt;strong&gt;iterator&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>What Is an Iterator in Python?</title><link>https://pythonbeginner.help/glossary/what-is-an-iterator-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-an-iterator-in-python/</guid><description>&lt;h1 id="what-is-an-iterator-in-python"&gt;What Is an Iterator in Python?&lt;/h1&gt;
&lt;p&gt;An iterator in Python is an object that gives you values &lt;strong&gt;one at a time&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;It keeps track of where it is, so each time you ask for the next value, it moves forward. Iterators are used behind the scenes in &lt;code&gt;for&lt;/code&gt; loops, and they are closely related to &lt;a href="https://pythonbeginner.help/glossary/what-is-an-iterable-in-python/"&gt;iterable objects&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;A beginner-friendly way to think about it is this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An &lt;strong&gt;iterable&lt;/strong&gt; is something you can loop over&lt;/li&gt;
&lt;li&gt;An &lt;strong&gt;iterator&lt;/strong&gt; is the thing that actually returns each item one by one&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="quick-example"&gt;Quick example &lt;a class="heading-anchor" href="#quick-example" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;numbers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;iter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;numbers&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;it&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Output:&lt;/p&gt;</description></item><item><title>What Is an Object in Python?</title><link>https://pythonbeginner.help/glossary/what-is-an-object-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-an-object-in-python/</guid><description>&lt;h1 id="what-is-an-object-in-python"&gt;What Is an Object in Python?&lt;/h1&gt;
&lt;p&gt;In Python, an &lt;strong&gt;object&lt;/strong&gt; is a value that exists in memory.&lt;/p&gt;
&lt;p&gt;This idea is important because &lt;strong&gt;everything you work with in Python is an object&lt;/strong&gt;. That includes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;numbers&lt;/li&gt;
&lt;li&gt;strings&lt;/li&gt;
&lt;li&gt;lists&lt;/li&gt;
&lt;li&gt;dictionaries&lt;/li&gt;
&lt;li&gt;booleans&lt;/li&gt;
&lt;li&gt;functions&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you understand what an object is, it becomes easier to understand types, methods, and some common errors.&lt;/p&gt;
&lt;h2 id="quick-example"&gt;Quick example &lt;a class="heading-anchor" href="#quick-example" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;A quick way to see that different values in Python are objects with different types:&lt;/p&gt;</description></item><item><title>What Is Error Handling in Python?</title><link>https://pythonbeginner.help/glossary/what-is-error-handling-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-error-handling-in-python/</guid><description>&lt;h1 id="what-is-error-handling-in-python"&gt;What Is Error Handling in Python?&lt;/h1&gt;
&lt;p&gt;Error handling is the way a Python program deals with problems while it is running.&lt;/p&gt;
&lt;p&gt;Instead of crashing as soon as something goes wrong, your code can respond in a controlled way. This is useful when working with user input, files, calculations, and other data that may not always be valid.&lt;/p&gt;
&lt;p&gt;In Python, error handling is commonly done with &lt;code&gt;try&lt;/code&gt; and &lt;code&gt;except&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="a-quick-example"&gt;A quick example &lt;a class="heading-anchor" href="#a-quick-example" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Here is a simple example of error handling:&lt;/p&gt;</description></item><item><title>What Is Inheritance in Python?</title><link>https://pythonbeginner.help/glossary/what-is-inheritance-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-inheritance-in-python/</guid><description>&lt;h1 id="what-is-inheritance-in-python"&gt;What Is Inheritance in Python?&lt;/h1&gt;
&lt;p&gt;Inheritance in Python is a way for one class to use code from another class.&lt;/p&gt;
&lt;p&gt;This helps you reuse methods and attributes instead of writing the same code again. It is a common idea in object-oriented programming, so it makes more sense if you already understand &lt;a href="https://pythonbeginner.help/learn/python-classes-and-objects-explained"&gt;classes and objects in Python&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here is the basic idea:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-python" data-lang="python"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Animal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;speak&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;Some sound&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Dog&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Animal&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; &lt;span class="k"&gt;pass&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="n"&gt;pet&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;Dog&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pet&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;speak&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>What Is Recursion in Python?</title><link>https://pythonbeginner.help/glossary/what-is-recursion-in-python/</link><pubDate>Tue, 09 Jun 2026 00:00:00 +0000</pubDate><guid>https://pythonbeginner.help/glossary/what-is-recursion-in-python/</guid><description>&lt;h1 id="what-is-recursion-in-python"&gt;What Is Recursion in Python?&lt;/h1&gt;
&lt;p&gt;Recursion in Python means a function calls itself.&lt;/p&gt;
&lt;p&gt;This may sound strange at first, but the idea is simple: the function keeps solving a smaller version of the same problem until it reaches a stopping point.&lt;/p&gt;
&lt;p&gt;A recursive function has two main parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Base case&lt;/strong&gt;: the condition that stops the function&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Recursive case&lt;/strong&gt;: the part where the function calls itself again&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here is the simplest working example:&lt;/p&gt;</description></item></channel></rss>