0% found this document useful (0 votes)
2 views1 page

Python Data Types Worksheet

The document is a worksheet focused on data types in Python, specifically strings, integers, and floats. It includes a table for users to fill in examples of these data types along with corresponding code using str(), int(), or float(). The document emphasizes the characteristics of each data type and provides a framework for practice.

Uploaded by

chenukasilva2
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Python Data Types Worksheet

The document is a worksheet focused on data types in Python, specifically strings, integers, and floats. It includes a table for users to fill in examples of these data types along with corresponding code using str(), int(), or float(). The document emphasizes the characteristics of each data type and provides a framework for practice.

Uploaded by

chenukasilva2
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Data types

Introduction to Python

Worksheet 2: Data types


Complete the table below with the correct data types and give an example of the code using
str(), int() or float().

• String holds alphanumeric data (text, numbers and punctuation) as text

• Integer holds whole numbers

• Float holds numbers with a decimal point

Data Example Data Type Code


Age 14 Integer int(age)

Shoe Size 6.5 Float

Price 14.99

Postcode

Height

Quantity in Stock

Telephone
Number

You might also like