About 3,770 results
Open links in new tab
  1. Arithmetic Operators in Python (+, -, *, /, //, %, **) - nkmk note

    May 11, 2025 · Note that the asterisks * and ** also have special meanings in function definitions and calls, where they are used for argument unpacking. The + operator performs addition between …

  2. Python Operators - W3Schools

    Python Operators Operators are used to perform operations on variables and values. In the example below, we use the + operator to add together two values:

  3. Python Operators - GeeksforGeeks

    Mar 25, 2026 · Ternary operators also known as conditional expressions are operators that evaluate something based on a condition being true or false. It was added to Python in version 2.5.

  4. Python Operators Cheat Sheet - LearnPython.com

    May 27, 2024 · Discover the essential Python operators and how to effectively use them with our comprehensive cheat sheet. We cover everything from arithmetic to bitwise operations!

  5. Python Operators - AskPython

    6 days ago · Two operators work on strings. The + operator concatenates two strings. The * operator repeats a string. There is no subtraction operator for strings. You cannot add a string and a number …

  6. Python Operators - Python Guides

    Python operators are symbols that perform operations on variables and values. They are a fundamental part of the Python programming language and are essential for performing computations, …

  7. operator — Standard operators as functions — Python 3.14.4 …

    2 days ago · Return a * b, for a and b numbers.

  8. Python Operators (With Examples) - Programiz

    In this tutorial, we'll learn everything about different types of operators in Python, their syntax and how to use them with examples.

  9. Python Operators - w3resource

    Apr 14, 2026 · Conditional expressions or ternary operator have the lowest priority of all Python operations. The expression x if C else y first evaluates the condition, C (not x); if C is true, x is …

  10. Operators in Python

    In Python, operators are used to perform operations on given values. The operations could be arithmetic, logical, etc. Based on the operations, the input values can be numeric, string, boolean, …