Search
- Filter Results
- Location
- Classification
- Include attachments
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/02%3A_Expressions/2.05%3A_Dividing_IntegersThis page explains learning objectives for evaluating expressions using floor division and modulo in Python. It differentiates between true division, yielding floats, and floor division, which provide...This page explains learning objectives for evaluating expressions using floor division and modulo in Python. It differentiates between true division, yielding floats, and floor division, which provides whole number quotients. The modulo operator finds remainders and is applied in unit conversions, like centimeters to meters. The content includes exercises on calculating arrival times and dispensing change at self-checkouts, reinforcing the practical applications of these operations.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/09%3A_Lists/9.05%3A_List_ComprehensionsThis page explains list comprehensions in Python, highlighting their structure and functionality for creating lists succinctly. It includes examples of generating lists of squares, modifying elements,...This page explains list comprehensions in Python, highlighting their structure and functionality for creating lists succinctly. It includes examples of generating lists of squares, modifying elements, and filtering lists based on conditions. The text also features practice questions to solidify understanding, alongside suggested programming tasks for word selection from lists.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/04%3A__Decisions/4.00%3A_IntroductionThis page explains Python's program execution, primarily along a single path, while enabling multiple execution routes through conditional statements (branches). It uses an analogy of choosing paths b...This page explains Python's program execution, primarily along a single path, while enabling multiple execution routes through conditional statements (branches). It uses an analogy of choosing paths based on width to clarify branching. The discussion links to earlier topics on expressions, highlighting their significance in decision-making within programming.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/01%3A_Statements/1.05%3A_Number_BasicsThis page outlines learning objectives for arithmetic operations and numeric data types in Python, covering basic formats like integers and floating-point numbers, and introducing arithmetic operators...This page outlines learning objectives for arithmetic operations and numeric data types in Python, covering basic formats like integers and floating-point numbers, and introducing arithmetic operators along with operator precedence. It provides checkpoints, practice questions, and programming exercises to reinforce understanding of these concepts.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/04%3A__Decisions/4.08%3A_Chapter_SummaryThis page discusses essential programming concepts including Booleans, comparison operators, logical operators, and decision statements. It explains the representation of True or False values, the eva...This page discusses essential programming concepts including Booleans, comparison operators, logical operators, and decision statements. It explains the representation of True or False values, the evaluation of conditions using these operators, and the execution of different code paths based on decision statements. The chapter also provides a variety of operators, examples, and concludes with a framework for applying these concepts in programming.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/04%3A__Decisions/4.03%3A_Boolean_OperationsThis page explains logical operators in Python: "and," "or," and "not." It details their functions and truth tables, with "and" returning true only if both conditions are true, "or" being true if at l...This page explains logical operators in Python: "and," "or," and "not." It details their functions and truth tables, with "and" returning true only if both conditions are true, "or" being true if at least one condition holds, and "not" inverting a condition's truth value. Practical examples demonstrate their application in decision-making, such as eligibility assessments and refund processes.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/04%3A__Decisions/4.04%3A_Operator_PrecedenceThis page explains operator precedence and associativity in expressions, detailing their roles in determining operation order. It advises using parentheses for clarity, illustrates concepts with examp...This page explains operator precedence and associativity in expressions, detailing their roles in determining operation order. It advises using parentheses for clarity, illustrates concepts with examples, emphasizes proper spacing according to PEP 8 guidelines, and includes practice checkpoints to strengthen understanding.