Читать книгу Introduction to Python Programming for Business and Social Science Applications - Frederick Kaefer - Страница 86

Stop, Code, and Understand! SCU 3.4 Sequence Operations

Оглавление

Download the file “SCU 3_4.py” from the companion website and save it either on your computer or on a removable storage device. Open the file in the Python IDLE editor and add a line of Python code where indicated to print out the largest value in the list stored in the variable list_variable. Execute the modified program after the change to verify that the revised code runs and produces the correct result.


Lessons learned: In this section, we learned how Python sequence operations can be used on strings and lists to do things like searching for values or counting how many times a value appears in a list of values.

Introduction to Python Programming for Business and Social Science Applications

Подняться наверх