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

Stop, Code, and Understand! SCU 2.1 Variable Assignment

Оглавление

Download the file “SCU 2_1.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 execute the program to see that it creates a variable that is a float data type. Add quotation marks around the value 12.5 in the assignment statement in the line indicated so that the type of variable created is a string data type. Execute the modified program to verify that the revised code creates a variable with a string data type.

Description

Introduction to Python Programming for Business and Social Science Applications

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