0% found this document useful (0 votes)
5 views2 pages

5 Python Beginners

This document is an introductory glossary for beginners in Python, detailing essential programming terms and constructs. It covers key concepts such as variables, strings, integers, floats, booleans, lists, dictionaries, functions, conditional statements, and loops, providing definitions and examples for each. The glossary serves as a reference guide for understanding basic Python syntax and coding principles.

Uploaded by

sasitharan86
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

5 Python Beginners

This document is an introductory glossary for beginners in Python, detailing essential programming terms and constructs. It covers key concepts such as variables, strings, integers, floats, booleans, lists, dictionaries, functions, conditional statements, and loops, providing definitions and examples for each. The glossary serves as a reference guide for understanding basic Python syntax and coding principles.

Uploaded by

sasitharan86
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

INTRODUCTORY PYTHON GLOSSARY FOR BEGINNERS

A reference guide detailing core terms, syntactical definitions, and


basic coding constructs in the Python programming language.

1. VARIABLE
A named storage location in memory used to hold data values. Variables in
Python are created dynamically when a value is assigned using the
assignment operator (=).
Example: user_age = 25

2. STRING
A sequence of characters enclosed inside single quotes ('...') or double
quotes ("..."). Strings are immutable data types used widely for handling
text content.
Example: greeting = "Hello, World!"

3. INTEGER
A whole number without any decimal point. Integers can be positive,
negative, or zero, and can grow to any size in memory within Python 3.
Example: item_count = 142

4. FLOAT
A numeric data type that represents real numbers containing one or more
decimal points. Short for floating-point number.
Example: product_price = 19.99

5. BOOLEAN
A primitive data type that can only hold one of two potential logical
values: True or False. Used extensively in conditional logic assessments.
Example: is_completed = True

6. LIST
An ordered, mutable sequence collection that can store multiple distinct
items or mixed data types inside square brackets, separated by commas.
Example: shopping_list = ["apples", "bananas", "oranges"]

7. DICTIONARY
An unordered, mutable collection of elements stored as key-value pairs
wrapped inside curly braces. Keys must be unique, unchangeable data
types.
Example: user_profile = {"username": "dev_juan", "level": 4}

8. FUNCTION
A reusable block of structured, organized code designed to execute a
single, related action. Functions are declared using the "def" keyword.
Example:
def say_hello():
print("Welcome back!")

9. CONDITIONAL STATEMENT
A control structure used to execute specific logic paths based on whether
a given boolean expression evaluates to True or False. Uses if, elif, and
else.
Example:
if score > 50:
print("Passed")
else:
print("Failed")

10. LOOP
A control block designed to repeatedly execute a subset of instructions
as long as a condition is satisfied (while loop) or by iterating through
a sequence (for loop).
Example:
for item in shopping_list:
print(item)

You might also like