For beginners with no prior experience in Python, mastering some basic vocabulary can help in better understanding code and tutorials. Here are some essential basic words and their meanings:
- Python: A simple and easy-to-learn programming language
- program: A program, referring to a collection of instructions
- code: Code, the written instructions of a program
- variable: A variable, a container for storing data
- function: A function, a block of code that performs a specific task
- print: Print, outputting information to the screen
- input: Input, obtaining data entered by the user
- integer (int): An integer, such as 1, 2, 3, etc.
- string (str): A string, text composed of characters, such as “hello”
- float: A float, a number with a decimal point, such as 3.14
- boolean (bool): A boolean value, which can be either True or False
- list: A list, an ordered collection that can contain multiple types of data, represented with []
- tuple: A tuple, similar to a list but immutable, represented with ()
- dictionary (dict): A dictionary, a collection of key-value pairs, represented with {}
- if: If, used for conditional statements
- else: Else, used in conjunction with if for conditional statements
- elif: Elif, used for multiple conditional checks
- for: For, used to iterate over sequences
- while: While, a conditional loop
- loop: Loop, repeatedly executing a block of code
- break: Break, exiting a loop
- continue: Continue, skipping the remaining statements in the current loop and moving to the next iteration
- return: Return, used in functions to return a result
- import: Import, bringing in external modules or libraries
- module: Module, a file containing functions and variables
- library: Library, a collection of related modules
- class: Class, a fundamental concept in object-oriented programming used to define the properties and methods of an object
- object: Object, an instance of a class
- method: Method, a function defined within a class
- error: Error, an issue that occurs during program execution
- exception: Exception, an unexpected situation that occurs during program execution
- comment: Comment, an explanation of the code that does not affect program execution
- indentation: Indentation, used in Python to distinguish the structure of code blocks
- operator: Operator, such as +, -, *, /, etc.
- expression: Expression, a combination of variables, operators, etc.
- statement: Statement, a line of executable code
- argument: Argument, a value passed to a function
- parameter: Parameter, a variable specified in a function definition
- range: Range, a function that generates a sequence of integers
- in: In, used to check membership