Friday 31 January 2014

3.1.1 Data Types

3.1.1 Data Types


Integer: Integers are whole, positive or negative numbers. 

For example: 1,2,3,4,5,6,7,8,-1,-2,-3,-4
Real/Floating point number: Decimal numbers. Used for times, exact measurements etc.  Floats are accurate but slow.
Date/Time: Used to store dates and times
For example: 11/06/2012, 
String: Strings are sequences of characters.  They can contain numbers, special characters and letters.  How are strings represented in Python?

No comments:

Post a Comment