About 50 results
Open links in new tab
  1. C Unary operators - Codecademy

    Feb 6, 2025 · Syntax operator operand; operator: A unary operator that performs an operation on a single operand. operand: The variable or value on which the operator acts. Note: In postfix notation, …

  2. C++ (C Plus Plus) | Operators | Assignment Operators | Codecademy

    Sep 26, 2025 · Assignment operators in C++ are fundamental operators used to assign values to variables. They perform the essential task of storing data in memory locations represented by …

  3. C# (C Sharp) | Operators | Codecademy

    Nov 3, 2022 · Increment, ++, which increments its single operand by one. Decrement, --, which decrements its single operand by one. Unlike the other arithmetic operators, the increment and …

  4. what is an operand? - Codecademy

    Subtraction (-) Addition (+) Examples of Arithmetic operator usage on operands: 5 (Operand) + 7 (Operand) 7 (Operand) * 3 (Operand) There are Arithmetic Operators, Logical Operators, …

  5. Missing operand; found - Codecademy

    This is a recurring problem for me. I am often being corrected with the message "missing operand; found *fill in the blank*"; things like "found else...

  6. Why?? TypeError: unsupported operand type (s) for /: 'NoneType' and ...

    Here is my code: grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def grades_sum(grades): total = 0 for i in...

  7. Python Operators - Codecademy

    Jul 22, 2025 · Operators in Python programming are special symbols or keywords that perform operations on variables and values. They are fundamental building blocks that allow developers to …

  8. C++ (C Plus Plus) | Operators | Logical Operators | Codecademy

    Aug 6, 2025 · Logical operators perform logical operations such as AND, OR, and NOT to combine or modify boolean expressions in C++.

  9. 6/34 Type error: unsupported operand type (s) for +=: 'set' and 'set ...

    Putting { } around things tells Python that you are creating a set. That is a different type of data than the strings that we need to work with here. Take all of those away and things will work out better. In …

  10. 15/15 unsupported operand type (s) for -: 'list' and 'int'

    In your if: sort[len(sort - 1). Wrong brackets. It should be like this: sort[(len(sort) - 1) / 2] Also, your median = 5.5 is useless. And in your if make sure to give it the right name. median instead of …