0% found this document useful (0 votes)
3 views

Basic Data Types — Python for Network Engineer

Uploaded by

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

Basic Data Types — Python for Network Engineer

Uploaded by

AJAY KUMAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Print to PDF

Basic Data Types


This chapter covers the basics of Python, which are essential for
writing programs or scripts. Python has various data types like
sets, strings, lists, and dictionaries that are important for
programming. It also includes numeric data types and strings,
which are sequences of characters.

Lists: Ordered sequences of elements that can be changed


(mutable).
Sets: Collections of unordered elements that cannot be
changed (immutable).
Tuples: Similar to sets but use parentheses and are also
immutable.

These elements help programmers create effective Python


programs for various applications.

Python variables can store different types of data, and each type
can perform different functions. Here are the built-in data types in
Python:

Sequences:
1. String: str()
2. List: list()
3. Tuple: tuple() stable

4. Range: range()
Mapping:
1. Dictionary: dict()
Set: set()
Numbers:
1. Integer: int()
Boolean Value: bool()
2. Float: float()
3. Complex: Complex numbers
None: Represents the absence of a value

Variables in Python
Python Naming Conventions
Understanding Python Strings
Understanding Python Numbers
Integers in Python
Floats in Python
Numbers - Other Operators
Type Casting in Python
Useful Built-in Functions
Python Operators

stable

You might also like