Search
- Filter Results
- Location
- Classification
- Include attachments
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/03%3A_Objects/3.04%3A_List_BasicsThis page discusses the fundamentals of lists in Python, detailing creation, access, and modification. Lists are defined with square brackets and can hold diverse data types. It covers key concepts li...This page discusses the fundamentals of lists in Python, detailing creation, access, and modification. Lists are defined with square brackets and can hold diverse data types. It covers key concepts like using indexes, the len() function to determine list length, and the dynamic nature of lists. Practice questions are included to reinforce skills in list creation, indexing, and modification.
- https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Python_Programming_(OpenStax)/05%3A_Loops/5.01%3A_While_LoopThis page explains Python's while loop, detailing its functionality to repeatedly execute code while a condition is true. It offers examples like generating Fibonacci numbers and counting odd numbers,...This page explains Python's while loop, detailing its functionality to repeatedly execute code while a condition is true. It offers examples like generating Fibonacci numbers and counting odd numbers, alongside checkpoints and exercises to enhance comprehension. Users are encouraged to apply while loops in practical tasks, such as handling user inputs and calculating sums of odd integers within specified ranges.
- 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.