CS 022A Lecture Notes - Lecture 8: Data Type

24 views2 pages

Document Summary

Data type is a way to classify various types of data such a sinteger, float and bool. Data type determines the values that can be used with the ocrresponding type of data and the type of operations that can be performed on the type of data. Built in: data types for which python has built in support. Strings are sequence type -- they behave like a sequence. Sequence types are compound data types - meaning they are made up of smaller pieces. Example : strings are made up of smaller strings, each containing one character. A list is a data structure that stores collections of data values. Each element being values of any python datatype. Just as variable stores one value , lists store a collection of variables in one named location in memory -- using one identifier. Lists , like , strings are ordered sequences of values.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents