Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Python Tutorial
Data Type 36 codes
Home
Python Tutorial
Data Type
1 Building a list from another list
2 Compare integers using if structures, relational operators and equality operators
3 Complex Math
4 Complex Number Attributes
5 Convert string to decimal
6 Decimal function
7 Decimal type
8 Demonstrates handling exceptions when converting string to float
9 Driver for class Rational
10 Floating Point and Exponential Notation Output
11 Format float numbers
12 Formatting float number, use the f specifier and supply the precision as a (dot) followed by the number of decimals
13 Formatting Numbers
14 Hexadecimal and Octal Notation
15 Hexadecimal numbers are written like this
16 Hexadecimal Output
17 Imaginary numbers are written with a suffix of j or J
18 Import cmath for Complex number
19 Import the decimal module to use the Decimal number class
20 Integer and String Output
21 List-copy function using None
22 Octal numbers
23 Python accepted almost anything in a boolean context
24 Python can handle really large integers
25 Python supports five basic numerical types, three of which are integer types
26 Real numbers are called floats or floating-point numbers
27 Set precision
28 Simple addition program
29 The Fields of Python Date Tuples
30 The following are defined as having false values in Python
31 To denote an octal literal, use 0 followed by a sequence of octal digits (0 to 7)
32 To extract these parts from a complex number z, use z real and z imag
33 True and false value
34 Use abs(z) to get its magnitude (as a float) or z real to get its real part
35 Using Booleans numerically
36 X Y