Search
- Filter Results
- Location
- Classification
- Include attachments
- 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)/02%3A_Expressions/2.00%3A_IntroductionThis page explains the structure of a computer program, focusing on sequential statements and expressions used in Python to compute values. It covers simple expressions, handling of numbers and string...This page explains the structure of a computer program, focusing on sequential statements and expressions used in Python to compute values. It covers simple expressions, handling of numbers and strings, experimentation with the Python shell, details on integers and floating-point numbers, the math module, and offers readability tips for coding.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/06%3A_Functions/6.05%3A_Return_ValuesThis page outlines key learning objectives related to return statements in functions, illustrating how they return values to the calling code. It includes examples of multiple return statements and em...This page outlines key learning objectives related to return statements in functions, illustrating how they return values to the calling code. It includes examples of multiple return statements and emphasizes avoiding division by zero. The text also discusses using functions as values in expressions and offers problem-solving exercises to enhance understanding.