Python: A Comprehensive Glossary - Unlocking the Language
Algorithm: A step-by-step procedure for solving a problem. Python is a tool toimplement algorithms.Bit: The smallest unit of data in a computer, representing a 0 or 1.Boolean: A data type with only two possible values: True or False. Used for logical operations.Byte: A group of 8 bits.Case Sensitivity: Python distinguishes between uppercase and lowercase letters (e.g., myVariable is different from MyVariable).Comments: Lines of code ignored by the Python interpreter, used for explanation and documentation. Start with #.Concatenation: Joining strings together using the + operator.Data Type: The classification of a value. Common types include integers, floats, strings, booleans, lists, tuples, and dictionaries.Debugging: The process of finding and fixing errors in code.Docstring (Documentation String): A multi-line string used to document a function, class, or module. Enclosed in triple quotes ("""Docstring goes here""").Expression: A combination of values, variables, and operators that evaluates to a single value.Float (Floating-Point Number): A number with a decimal point (e.g., 3.14, -2.5).Function: A reusable block of code that performs a specific task. Defined using the def keyword.Identifier: A name given to a variable, function, class, or other entity. Must follow specific rules (e.g., start with a letter or underscore, no spaces).Integer: A whole number (e.g., 10, -5, 0).Interpreter: A program that executes Python code line by line.List: An ordered, mutable (changeable) sequence of items. Defined using square brackets [].Loop: A control flow statement that repeatedly executes a block of code. Python has for and while loops.Module: A file containing Python code, defining functions, classes, and variables. Used for code organization and reusability.Operator: A symbol that performs an operation on values (e.g., +, -, *, /, ==, >).String: A sequence of characters. Enclosed in single quotes (') or double quotes (").Syntax: The set of rules that define the structure of a programming language.Tuple: An ordered,immutable (unchangeable) sequence of items. Defined using parentheses ().Variable: A name that refers to a value. Used to store and manipulate data.
Conditional Statement: A statement that executes different blocks of code based on a condition (e.g., if, elif, else).Dictionary: An unordered collection of key-value pairs. Defined using curly braces {}. Keys must be unique and immutable.Exception: An error that occurs during program execution. Python provides mechanisms for handling exceptions using try, except, finally.For Loop: A loop that iterates over a sequence (e.g., a list, tuple, string).Function Call: Executing a function by using its name followed by parentheses ().Index: The position of an item in a sequence (e.g., a list or string). Indexing starts at 0.Iteration: A single pass through the body of a loop.Key: The identifier used to access a value in a dictionary.Lambda Function (Anonymous Function): A small, unnamed function defined using the lambda keyword.List Comprehension: A concise way to create new lists based on existing iterables.Nested Loop: A loop inside another loop.Range: A built-in function that generates a sequence of numbers. Often used with for loops.Set: An unordered collection of unique items. Defined using curly braces {}.Slice: A portion of a sequence (e.g., a list or string) extracted using the [:] operator.While Loop: A loop that continues to execute as long as a condition is true.
Class: A blueprint for creating objects. Defines attributes (data) and methods (functions).Encapsulation: Bundling data and methods that operate on that data within a class.Inheritance: Creating a new class (child class) based on an existing class (parent class), inheriting its attributes and methods.Instance: A specific object created from a class.Method: A function defined within a class.Object: An instance of a class.Polymorphism: The ability of objects of different classes to respond to the same method call in their own way.Self: A reference to the instance of a class within its methods.
API (Application Programming Interface): A set of rules and specifications that allow different software systems to communicate with each other.CSV (Comma Separated Values): A simple file format for storing tabular data.JSON (JavaScript Object Notation): A lightweight data-interchange format.NumPy: A library for numerical computing, providing support for arrays and mathematical operations.Pandas: A library for data analysis and manipulation, providing data structures like DataFrames.Matplotlib: A library for creating visualizations (plots, charts, etc.).Requests: A library for making HTTP requests.Virtual Environment: An isolated environment for Python projects, allowing you to manage dependencies without conflicts. Created using venv or virtualenv.PIP (Package Installer for Python): A tool for installing and managing Python packages.Regular Expression (Regex): A sequence of characters that defines a search pattern. Used for pattern matching in strings.Git: A distributed version control system used for tracking changes in code.IDE (Integrated Development Environment): A software application that provides comprehensive facilities to computer programmers for software development (e.g., VS Code, PyCharm).
and, as, assert, break, class, continue, def, del, elif, else, except, False, finally, for, from, global, if, import, in, is, lambda, None, not, or, pass, print, raise, return, True, try, while, with, yield
댓글 없음:
댓글 쓰기