Module-2
What is Python?
Python is a high-level programming language, making it easy to read and write—its code often resembles plain English. It includes thousands of ready-made libraries and runs on any major platform (Windows, macOS, Linux). It’s used for Web development (like Django, Flask), Data analysis & AI (like pandas, NumPy, TensorFlow), Automation (scripts that do repetitive tasks), Software and games.
What is Python code?
Python code means instructions written in the Python programming language that tell the computer what to do.
Libraries mean in Python?
A library is a collection of pre-written Python code that can be used instead of writing everything from scratch.
Comment means in Python?
Comments in Python are notes that can be added directly in the code to explain what it does. The computer completely ignores them—they have no effect on how the program runs. They’re meant solely for people (you or others reading the code later) to make it easier to understand.
Print Means in Python?
The print() function in Python is used to display something on the screen. Anything inside the parentheses () will be shown in the output. It can print text, numbers, variables, or a combination.
Output Means in Python?
Output is the result or information that Python shows you after running your code. It can output text, numbers, variables, or a combination. output of print code: Print(“Hello, Sid!”)
Variable Means in Python?
A variable is like a labeled storage box in your computer’s memory. You can store information in it (numbers, text, etc.) to use later in program, and change value anytime.
String Means in Python?
A string is a sequence of characters — like text, letters, numbers (as text), or symbols. Strings are used to store names, messages, or any text data. Anything enclosed in quotes ("" or '') is a string in Python.
Loop Means in Python?
A loop is a way to repeat a set of instructions multiple times without writing the same code again and again manually.
Operators mean in Python?
An operator is a symbol that tells Python to perform a specific operation on one or more values (variables, numbers, etc.).
Tulip mean in Python?
A tuple is a collection of items (like a list), but it is immutable — meaning you cannot change, add, or remove items after creating it.
Function Means in Python?
A function is a block of code that performs a specific task. Functions make code organized, reusable, and easier to read. define it once and can be used use it many times.
Module Means in Python?
A module is a file containing Python code (functions, variables, classes) that you can reuse in other Python programs.
Set Means in Python?
A set is a collection of unique items (no duplicates) that is unordered. Sets are useful to store distinct items and perform operations like union, intersection, difference.