info.pantverse@gmail.com

java chapter3

🔹 1. What are Control Statements? Control statements determine the flow of execution of a program — i.e., which statements are executed, in what order, and how many times. Java control statements are divided into three main types: 🧩 1. Decision-Making Statements Used to make choices based on conditions. 🟢 A. if Statement Executes a block only if the condition is true. 🟢 B. if–else Statement Executes […]

java chapter3 Read More »

Python Chapter 3

⚙️ What are Control Statements? Control statements are used to control the flow of a program — they decide which part of the code will run and how many times. There are 3 main types: 🧠 1. Conditional Statements (Decision Making) These allow the program to make decisions based on conditions. 🔹 if Statement Runs code only if the condition is true. 🔹 if–else Statement Runs

Python Chapter 3 Read More »

Python Chapter 2

📘 Variables 🔢 Data Types Type Example Description int 10 Whole numbers float 3.14 Decimal numbers str “Hello” Text or characters bool True / False Logical values list [1, 2, 3] Collection of items tuple (1, 2, 3) Ordered and unchangeable items dict {“name”:”Ali”, “age”:15} Key-value pairs 💬 Input and Output ➕ Operators 🔹 Arithmetic Operators +, -, *, /, %, **, // 🔹 Comparison

Python Chapter 2 Read More »