Search
- Filter Results
- Location
- Classification
- Include attachments
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/01%3A_Statements/1.02%3A_Input_OutputThis page discusses basic input and output in programming, focusing on the print() and input() functions. It covers customizing output with separators and line endings, providing examples of printing ...This page discusses basic input and output in programming, focusing on the print() and input() functions. It covers customizing output with separators and line endings, providing examples of printing multiple values. The input() function enables capturing user input for use in the program. Practical exercises are included for hands-on practice, emphasizing the importance of detail in spacing and formatting for programming accuracy.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/04%3A__Decisions/4.07%3A_Conditional_ExpressionsThis page introduces conditional expressions, or ternary operators, as a simplified version of if-else statements in Python. It covers their syntax, evaluation, and provides examples, noting their low...This page introduces conditional expressions, or ternary operators, as a simplified version of if-else statements in Python. It covers their syntax, evaluation, and provides examples, noting their low precedence. The page includes practice checkpoints and encourages exercises like converting if-else statements into conditional expressions and determining variable assignments based on conditions.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/06%3A_Functions/6.01%3A_Defining_FunctionsThis page outlines key programming learning objectives regarding functions, including identifying function calls, defining parameterless functions, and the benefits of modular and reusable code. It in...This page outlines key programming learning objectives regarding functions, including identifying function calls, defining parameterless functions, and the benefits of modular and reusable code. It includes examples, proper naming conventions, checkpoints, and practice concepts, with step-by-step tasks and user-driven functions emphasized for real-world applications.