pynotes
Menu
Contents:
Python Basics
Python Introduction
Python Programming Overview
Lexical Analysis Python
Keywords
Python Operators
Python Data Types
Python Data Types
Python Strings
String Formatting
Python Lists
Python Tuple
Python Sets
Stacks and Queues in Python
Python Dictionary
Type Conversion
Python Flow Control
Python if…else
loops in python
Python Function
Python - Functions
Built-in Functions
Python *args and **kwargs
Python Recursion
Partial Functions in Python
Modules in Python
Python Package
Python FileHandling
Python - Files I/O
File Objects in Python
Python Object Oriented Programming
Class and Instance Attributes
Python Object Oriented Programming
Python @property
Self in Python
Inheritance in Python
Python Exceptions Handling
Python Exceptions: An Introduction
Types of program errors
Built-in Exceptions
raise keyword with example in Python
Custom Exceptions in Python
Data Visualization Using Python Matplotlib
Python Introduction to Matplotlib
Matplotlib - line chart
Matplotlib - Bar Plot
Matplotlib - pie chart
Python Numpy Basics
Python NumPy Tutorial
PAGE CONTENTS
Python Data Types
Home
Python Data Types
Previous
Next
Python Data Types
Contents:
Python Data Types
Built-in Data Types
Getting the Data Type
Setting the Data Type
Python Strings
What is String in Python?
How to create a string in Python?
How to access characters in a string?
How to change or delete a string?
Python String Operations
Python String Formatting
Common Python String Methods
String Methods
String Formatting
Learning Objectives:
1. Formatting using percentage symbol
2. str.format()
3. f-Strings
Speed comparison
f’string with Dictionaries
Formatting Types
Python Lists
Learning Objectives:
Python Collections (Arrays)
List
List Methods
Python Tuple
Tuple
Creating a Tuple
Access Tuple Elements
Changing a Tuple
Deleting a Tuple
Tuple Methods
Advantages of Tuple over List
Converting list to a Tuple
Basic Tuples Operations
Indexing, Slicing, and Matrixes
Python Sets
Learning Objectives:
set
Creating a set
Checking immutability of Set
Checking uniqueness of Set
Adding items to the set
Removing items from the set
Python Set Operations
FrozenSets
Set Programming Example
Python Built-in set methods
Stacks and Queues in Python
Introduction
Stack
Queue
Stacks and Queues using Lists
Stacks and Queues with the Deque Library
Stricter Implementations in Python
Examples
Conclusion
Python Dictionary
Dictionary
Type Conversion
Type Conversion in Python
Previous
Next