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

Stop, Code, and Understand! SCU 2.6 Use a Built-in Function

Оглавление

Download the file “SCU 2_6.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 function call around the string to print the length. Hint: Use the Python built-in function len. Execute the modified program after the change to verify that the revised code runs and produces the correct result.


Introduction to Python Programming for Business and Social Science Applications

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