Search
- Filter Results
- Location
- Classification
- Include attachments
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_and_Computation_Fundamentals/Mathematics_for_Computer_Science_(Lehman_Leighton_and_Meyer)/01%3A_Proofs/04%3A_Mathematical_Data_Types/4.03%3A_FunctionsSo if \(f: A \rightarrow B\), and \(S\) is a subset of \(A\), we define \(f(S)\) to be the set of all the values that \(f\) takes when it is applied to elements of \(S\). 4 There is a picky distinctio...So if \(f: A \rightarrow B\), and \(S\) is a subset of \(A\), we define \(f(S)\) to be the set of all the values that \(f\) takes when it is applied to elements of \(S\). 4 There is a picky distinction between the function \(f\) which applies to elements of \(A\) and the function which applies \(f\) pointwise to subsets of \(A\), because the domain of \(f\) is \(A\), while the domain of pointwise-\(f\) is pow\((A)\).
- https://eng.libretexts.org/Courses/Prince_Georges_Community_College/INT_2080%3A__The_Missing_Link_-_An_Introduction_to_Web_Development_(Mendez)/03%3A_Scripting_Language/3.11%3A_Objects_and_ClassesProtected items can be accessed by other methods in the class, or by methods in parent or child classes that use the class in question—we will cover class inheritance here though. This means that a me...Protected items can be accessed by other methods in the class, or by methods in parent or child classes that use the class in question—we will cover class inheritance here though. This means that a method or data member marked private in our Math example could only be used by other methods in the class, not by us when we write code to use an object based on the class.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/16%3A_Answer_Key/16.05%3A_Chapter_6This page covers essential programming concepts related to functions, including their definitions, control flow, variable scope, parameters, return values, and keyword arguments. It highlights the imp...This page covers essential programming concepts related to functions, including their definitions, control flow, variable scope, parameters, return values, and keyword arguments. It highlights the importance of function calls and reusability, explaining local versus global variables and the interaction of parameters and arguments. Additionally, it discusses the handling of return values and the differences between mutable and immutable objects regarding function operations.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/12%3A_Recursion/12.00%3A_IntroductionThis page discusses recursion, a programming technique that simplifies complex solutions by allowing functions to call themselves with varying parameters. It highlights the compactness and efficiency ...This page discusses recursion, a programming technique that simplifies complex solutions by allowing functions to call themselves with varying parameters. It highlights the compactness and efficiency recursion brings to programming, especially in advanced scenarios.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/09%3A_Lists/9.03%3A_Common_List_OperationsThis page covers key list operations in Python, detailing the use of built-in functions such as max(), min(), and sum() for finding the largest, smallest, and total values in a list. It explains list ...This page covers key list operations in Python, detailing the use of built-in functions such as max(), min(), and sum() for finding the largest, smallest, and total values in a list. It explains list copying with the copy() method and the effects of modifying original versus copied lists. The section also includes practice questions to enhance comprehension of these concepts.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/02%3A_Expressions/2.09%3A_Chapter_SummaryThis page covers essential programming concepts, including interactive expressions, type conversions, string concatenation, and floating-point error handling. It highlights the significance of readabi...This page covers essential programming concepts, including interactive expressions, type conversions, string concatenation, and floating-point error handling. It highlights the significance of readability and presents functions like `abs()` and `int()`. Practical exercises include a bread ingredient calculator and a tip calculator, focusing on user input and accurate output formatting. The chapter reinforces the application of programming skills in real-world scenarios.
- https://eng.libretexts.org/Bookshelves/Data_Science/Principles_of_Data_Science_(OpenStax)/11%3A_Appendix
- https://eng.libretexts.org/Bookshelves/Introductory_Engineering/EGR_1010%3A_Introduction_to_Engineering_for_Engineers_and_Scientists/09%3A_Programming_in_any_languageHere we discuss programming in general. The intend of this chapter is to discuss ideas that will apply to most programming languages. Given that there are over 200 software languages it is quite use...Here we discuss programming in general. The intend of this chapter is to discuss ideas that will apply to most programming languages. Given that there are over 200 software languages it is quite useful to explore the theory that will allow a user to study any programming language.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/06%3A_Functions/6.07%3A_Chapter_SummaryThis page discusses key concepts of functions in programming, emphasizing their role as organized code blocks that enhance program structure. It covers control flow, variable scope (global vs. local),...This page discusses key concepts of functions in programming, emphasizing their role as organized code blocks that enhance program structure. It covers control flow, variable scope (global vs. local), and the use of parameters and arguments, including positional, keyword, and default values. The chapter highlights Python’s pass-by-object-reference system and the importance of return statements. Ultimately, readers are expected to learn how to create versatile functions.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/06%3A_Functions/6.00%3A_IntroductionThis page discusses the importance of functions in software development for optimizing code and enabling code reuse. Functions can accept and return values, allowing them to perform various tasks, inc...This page discusses the importance of functions in software development for optimizing code and enabling code reuse. Functions can accept and return values, allowing them to perform various tasks, including complex calculations. They help create different execution paths, similar to branching statements. Additionally, the chapter explores control flow and variable scope in programming.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/07%3A_Modules/7.03%3A_Top-level_CodeThis page discusses Python module behavior, highlighting potential side effects from importing modules and the significance of the `if __name__ == "__main__"` statement. It explains that top-level cod...This page discusses Python module behavior, highlighting potential side effects from importing modules and the significance of the `if __name__ == "__main__"` statement. It explains that top-level code runs upon import, which can lead to unintended consequences, and provides examples to illustrate this. The text emphasizes the importance of using the conditional statement to control execution and prevent code from running prematurely. Exercises are included to reinforce the concepts presented.