Python Numbers

  • What are Python numbers?
  • I. Integers
  • II. Floating-Point Numbers
  • III. Complex Numbers
  • Underscores in Numbers
  • Python Random Numbers
  • How do you write 10 3 in Python?

Python Boolean

  • What is a Boolean in Python?
  • How do you create a Boolean in Python?
  • Performing Boolean Operations
  • Logical AND (and)
  • Logical OR (or)
  • Logical NOT (not)
  • Making Decisions with Conditional Statements
  • Comparing Values with Comparison Operators
  • Equal to ==

Python set add() Method

  • What is the Purpose of Python set add()?
  • Python set add() Syntax and Parameters
  • How does set add work in Python?
  • I. Adding a Single Element to a Set
  • II. Adding Numbers to a Set
  • III. Adding Strings to a Set
  • IV. Adding Mixed Data Types to a Set
  • V. Adding Variables to a Set
  • VI. Adding Constants to a Set
  • VII. Adding Elements in a Loop

Python abs() Function | Absolute

  • Python abs() Syntax and Parameters
  • What does abs() do in Python?
  • I. Absolute Value of Integers
  • II. Absolute Value of Floating-Point Numbers
  • III Handling Complex Numbers with the abs() Function
  • IV. Using abs() Function with Variables and Expressions
  • V. Python abs() in Comparison and Conditional Statements
  • VI. Python abs() with Custom Classes
  • VII. Python abs() for Iterable Objects
  • VIII. Python abs() with NumPy Arrays

Python bool() Function Or Method

  • Python bool() Syntax
  • What is the default value of bool () in Python?
  • What is the return value of a bool() Function?
  • What does bool () do in Python?
  • I. Using bool() With List
  • II. Using bool() With Tuples
  • III. Using bool() With Dictionary
  • IV. Using bool() With Sets
  • V. Using bool() With Empty Objects
  • VI. Using bool() With Non-Empty Objects

Python chr() Function

  • Python chr() Syntax and Parameter
  • Python chr() return value
  • What Does Python chr() do?
  • I. Creating Object with chr()
  • II. Python chr() Character Range
  • III. Python chr() Character Out of Range
  • Converting Different data types to chr()
  • I. Integer to chr()
  • II. Python chr() to Integer
  • III. Float to chr()

Python complex() Function

  • Python complex() Syntax and Parameters
  • I. Real
  • II. Imag
  • Python complex() Return Value
  • What does complex() do in Python?
  • I. Python complex() Object Creation
  • II. Creating complex numbers with complex()
  • III. Creating Complex Number without complex()
  • Converting Other Data Types Using complex()
  • I. Converting Integers to Complex Number

Python divmod() Function

  • Python divmod() Syntax and Parameters
  • Python divmod() Return Value
  • What Does divmod() Function Do?
  • I. Python divmod() with Integer Arguments
  • II. Python divmod() with Float Arguments
  • III. Python divmod() with Negative Numbers
  • IV. Python divmod() with Non-Numeric Arguments
  • V. Python divmod() with Complex Number Arguments
  • VI. Python divmod() with Conditional Statements
  • Python divmod() with Non-Primitive Datatype

Python float() Function

  • Python float() Syntax and Parameter
  • Python float() Return Value
  • What does float() do in Python?
  • I. Creating float() Object
  • II. Converting Integer into Float
  • II. Converting String into Float
  • III. Python float() with Invalid Input
  • IV. Python float() with Infinity and NaN
  • V. Python float() with Precision and Rounding
  • Python float() Advanced Examples

Python format() Function

  • Python format() Syntax and Parameters
  • Python format() Return Value
  • What Does format() Function Do?
  • I. Creating an Object through format() function
  • II. Python String format() and Value Formatting
  • III. Python Single String format()
  • IV. Python format() - Index-Based Replacement
  • V. Python String format() IndexError
  • VI. Python format() and Escape Sequences
  • VII. Python format() with Positional and Keyword Arguments

Python hex() Function

  • Python hex() Syntax and Parameter
  • Python hex() Return Value
  • I. Creation of the hex() Object
  • II. Handling Negative Integers with hex()
  • III. Handling Invalid Input in the hex()
  • IV. Handling Large Integer with hex()
  • V. Python hex() for Float Value
  • VI. Python hex() Function for ASCII
  • Python hex() Advanced Examples
  • I. Python hex() to Bytes

Python id() Function

  • Python id() Syntax and Parameter
  • Python id() Return Value
  • I. Creation of id() Object
  • II. Python id() for Object Identification
  • Using id() with Different Object Types
  • I. Python id() with Strings
  • II. Python id() with Float
  • Python id() Advanced Examples
  • I. Python id() with Set
  • II. Python id() with Tuple

Python input() Function

  • What is a Purpose of input() Function?
  • Python input() Syntax and Parameter
  • Python input() Return Value
  • I. Creation of input() Object
  • II. Python input() with Integers
  • III. Python input() with Float
  • IV. Python input() with Conditional Statements
  • Python input() Advanced Examples
  • I. Python input() with Lists
  • II. Python input() with Dictionaries

Python int() Function

  • Python int() Syntax and Parameter
  • Python int() Return Value
  • I. Creation of int() Object
  • II. Python int() Size
  • III. Python int() with Two Arguments
  • IV. Python int() with Float
  • V. Handling Invalid Input for int()
  • Python int() Advanced Examples
  • I. Invalid Literal for int() with Base 10
  • II. Arithmetic and Mathematical Calculations with int()

Python issubclass() Function

  • What is a Purpose of issubclass() Function?
  • Python issubclass() Syntax and Parameters
  • I. Class_to_check
  • II. Potential_base_class
  • Python issubclass() Return Value
  • I. Creation of issubclass() Object
  • II. Python issubclass() with Integer
  • III. Handling TypeError in issubclass()
  • IV. Python issubclass() for User-Defined Classes
  • Python issubclass() Advanced Examples

Python List Function

  • Python List Function Syntax and Parameter
  • Python list() Return Value
  • I. Creation of list() Object
  • II. Python list() with Integer
  • III. Python list() with Float
  • IV. Python list() with User Input
  • V. Python list() with Conditional Statement
  • Python list() Advanced Examples
  • I. Modifying and Manipulating list()
  • II. Crafting a List from a Tuple

Python map() Function

  • Python map() Syntax and Parameters
  • I. Function
  • II. Iterable
  • Python map() Return Value
  • I. Creation of map() Object
  • II. Python map() with Lambda
  • III. Handling Uneven Lengths in map() Input
  • IV. Python map() with Conditional Statement
  • Python map() Advanced Examples
  • I. Python map() with Dictionary

Python oct() Function

  • Python oct() Syntax and Parameter
  • Python oct() Return Value
  • I. Creation of oct() Object
  • II. Handling Negative Integers with oct()
  • III. Converting Binary to Octal using oct()
  • IV. Converting Hexadecimal to Octal using oct()
  • V. Python oct() with Conditional Statement
  • Python oct() Advanced Examples
  • I. Python oct() with List
  • II. Utilizing oct() for Bit Manipulation

Python pow() Function

  • Python pow() Syntax and Parameters
  • I. Base
  • II. Exponent
  • III. Modulo (optional)
  • Python pow() Return Value
  • I. Creation of pow() Object
  • II. Calculating POW in Python
  • III. Python pow() with Float
  • IV. Calculating POW 2^2 in Python
  • V. Pow() with Exponentiation and Modular Arithmetic

Python print() Function

  • Python print() Syntax and Parameters
  • I. Sep
  • II. End
  • Python print() Return Value
  • I. Creation of the print() Object
  • II. Displaying Variables Using the print()
  • III. Python print() with String
  • IV. Formatting Output with print()
  • V. Python end in print()
  • VI. Controlling Separators in the print()

Python round() Function

  • Python round() Syntax and Parameters
  • Python round() Return Value
  • I. Functionality of round() for Number Rounding
  • II. Python round() with Negative Integers
  • III. Rounding to Two Decimal Places with round()
  • IV. Python round() up to Nearest 10
  • V. Python round() with Conditional Statement
  • Python round() Advanced Examples
  • I. Python round() with Math Library
  • II. Python round() with NumPy

Python sum() Function

  • Python sum() Syntax and Parameter
  • Python sum() Return Value
  • I. Creation of sum() Object
  • II. Python sum() with Float
  • III. String Offset Calculation with sum()
  • IV. Python sum() with Conditional Statement
  • V. Optimizing sum() with Large Data Sets
  • Python sum() Advanced Examples
  • I. Python sum() with While Loop
  • II. Python sum() with List of Lists

Python str() Function

  • Python str() Syntax and Parameters
  • I. Object
  • II. Encoding (optional)
  • III. Errors (optional)
  • Python str() Return Value
  • I. Str() Formatting for Different Data Types
  • II. Convert a Float to a String with str()
  • III. Convert Bytes to a String with str()
  • IV. Converting Boolean to Strings with str()
  • Python str() Advanced Examples

Python type() Function

  • Python type() Syntax and Parameters
  • I. Object
  • II. Bases
  • III. Dict
  • Python type() Return Value
  • I. Python type() with Single Parameter
  • II. Python type() with Three Parameters
  • III. Python type() with Float
  • IV. Python type() with User Input
  • V. Python type() with Object Parameter

Python isidentifier() String Method

  • Python isidentifier() Syntax and Parameter
  • Python isidentifier() Return Value
  • I. Python isidentifier() with User Input
  • II. Python isidentifier() with Conditional Statement
  • Python isidentifier() Advanced Examples
  • I. Python isidentifier() with Tuple
  • II. Using isidentifier() with For Loop
  • III. Exception Handling with isidentifier()
  • Practical Use Cases for isidentifier()
  • I. Variable and Identifier Validation

Python isnumeric() String Method

  • Python isnumeric() Syntax and Parameter
  • Python isnumeric() Return Value
  • I. Python isnumeric() for Removing Numeric Characters
  • II. Python isnumeric() with Other Numeric Types
  • III. Python isnumeric() - Counting Numeric Characters
  • Python isnumeric() Advanced Examples
  • I. Using isnumeric() with While Loop
  • II. Python isnumeric() Exception Handling
  • Practical Use Cases for isnumeric()
  • I. Parsing Numerical Data
Scroll to Top