Object reusability in python - PowerPoint PPT Presentation

About This Presentation
Title:

Object reusability in python

Description:

This presentation is here to help you understand about the Object reusability in python. Python is an object-oriented programming language. When working on complex programs in particular, which in turn makes it more maintainable. stay tuned with Learnbay for topics. – PowerPoint PPT presentation

Number of Views:13

less

Transcript and Presenter's Notes

Title: Object reusability in python


1
Data Types in Python
Swipe
2
Object Reusability in Python
Everything is object in Python. Creating objects
in other programming languages is bit
costly. Objects get created at time when we
launch python for the most frequently used
values/objects. Available only for Fundamental
data types including None, not for derived data
types. But derived data types follow object
reusability internally. Object reusability
concept is used to efficiently utilise the
memory.
3
Object Reusability in Python
Frozen Sets
Frozen Sets
Frozen Sets
Frozen Sets
Frozen Sets
4
Intergers
This value is represented by int
class. It contains positive or negative
(without fraction or decimal).
whole
numbers
In Python there is no limit to how long an integer
value can be. Only in the range from 0 to 256.
5
Float
This value is represented by float class. It is
a real number with floating point representation.
It is specified by a decimal point. Optionally,
the character e or E followed by a positive or
negative integer may be appended to specify
scientific notation.
6
Complex Numbers
Complex number is represented by complex
class. It is specified as (real part)
(imaginary part)j. For example 23j
7
Strings
In Python, Strings are arrays of bytes representin
g Unicode characters. A string is a collection
of one or more characters put in a single quote,
double-quote or triple quote. In python there is
no character data type, a character is a string
of length one. It is represented by str class.
8
Boolean
  • Data type with one of the two built-in values,
    True or False.
  • Boolean objects that are equal to True are truthy
    (true), and those equal to False are falsy
    (false).
  • But non-Boolean objects can be evaluated in
    Boolean context as well and determined to be
    true or false.
  • It is denoted by the class bool.

9
Topics for next Post
For More topics Stay Tuned with
Write a Comment
User Comments (0)
About PowerShow.com