BCA-202N · Programming in Python
Unit 2
Operators, Expressions & Creating Python Programs
0% read Sign in to save
Unit 2 Learning Hub
Operators, Expressions & Creating Python Programs
Official MJPRU BCA Unit 2: Operators, Expressions & Creating Python Programs for BCA-202N (Programming in Python).
Syllabus Topics:Arithmetic Operators: Addition (+), Subtraction (-), Multiplication (*), True Division (/), Floor Division (//), Modulo (%), Exponentiation (**)Relational / Comparison Operators: ==, !=, >, <, >=, <=, Chained Comparisons (a < b < c)Logical Operators: and, or, not (Short-Circuit Evaluation Semantics)Bitwise Operators: Bitwise AND (&), OR (|), XOR (^), Inversion (~), Left Shift (<<), Right Shift (>>)Assignment and Augmented Operators: =, +=, -=, *=, /=, //=, %=, **=Identity and Membership Operators: is vs == (Object Identity vs Value Equality), in and not in OperatorsTernary Conditional Expression: x if condition else y Syntax and PrecedenceOperator Precedence & Associativity Hierarchy: BEDMAS / PEMDAS Order of EvaluationPython Collection Primitives: Lists (Mutable, Ordered, Indexable), List Methods (append, extend, pop, sort)Tuples: Immutable Sequences, Packing and Unpacking, Single Element Tuple Syntax (1,)Dictionaries (dict): Key-Value Mappings, Hashing Requirements, Dict Methods (keys, values, items, get, update)Sets (set): Unordered Unique Elements, Set Operations (Union |, Intersection &, Difference -, Symmetric Difference ^)
1
Card 1 of 5·+0 XP earned
Introduction to Computers & The IPO Cycle
💻
Topic 1 · The foundation of modern computing
Introduction to Computers & The IPO Cycle
+25 XP
🐾
Ready to master this concept? Give it a quick read & tap the check!
💡 The Big Picture:A computer is an electronic system that takes raw data as Input, processes it under programmed logic, and produces meaningful Information as Output.
🍪 Everyday Analogy:Think of baking cookies: Flour & Sugar (Input) ➔ The Oven (Processing) ➔ Warm Delicious Cookie (Output)! 🍪
Key Exam Takeaways
- ·Data = Raw, unprocessed facts without context (e.g. 42, 'apple').
- ·Information = Structured data with meaning (e.g. 'Temperature: 42°C').
- ·Hardware is what you can touch; Software is the instructions running inside.
Instant Knowledge Check
+20 XP
Which of the following represents unprocessed raw facts?
1/5