It’s an assignment operator shorthand for /
and =
.
Example:
x = 12
x /= 3 # equivalent to x = x / 3
If you use help('/=')
, you can get the full amount of symbols supported by this style of syntax (including but not limited to +=
, -=
, and *=
), which I would strongly encourage.
Related Posts:
- What does “while True” mean in Python?
- What is the difference between {} and [] in python?
- syntaxerror: “unexpected character after line continuation character in python” math
- How do you express binary literals in Python?
- Can someone explain __all__ in Python?
- How to exit a loop in Python?
- How can I do a line break (line continuation) in Python?
- What do >> and << mean in Python?
- Is there a difference between `continue` and `pass` in a for loop in python?
- What does `<>` mean in Python?
- What does the “at” (@) symbol do in Python?
- What is :: (double colon) in Python when subscripting sequences?
- What’s the u prefix in a Python string?
- Python def function: How do you specify the end of the function?
- No Multiline Lambda in Python: Why not?
- What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
- Python integer incrementing with ++ [duplicate]
- What is the result of % in Python?
- What’s the meaning of “=>” (an arrow formed from equals & greater than) in JavaScript?
- IndentationError: unexpected indent error
- Putting a simple if-then-else statement on one line [duplicate]
- How can I do a line break (line continuation)?
- How do you comment out code in PowerShell?
- How do I break a string in YAML over multiple lines?
- What does ‘&’ do in a C++ declaration?
- syntaxerror: “unexpected character after line continuation character in python” math
- syntaxerror: “unexpected character after line continuation character in python” math
- `from … import` vs `import .` [duplicate]
- Tab space in Markdown
- syntax error when using command line in python
- In JavaScript is != same as !==
- What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
- syntax error when using command line in python
- What Does This Mean in PHP -> or =>
- Comments in Markdown
- How do I pass multiple parameters into a function in PowerShell?
- Comments in Markdown
- What is the difference between syntax and semantics in programming languages?
- Python: SyntaxError: keyword can’t be an expression
- What do << or >>> in java mean?
- What is the Java ?: operator called and what does it do?
- How do I convert a float number to a whole number in JavaScript?
- hat does “static” mean in C?
- How to normalize a 2-dimensional numpy array in python less verbose?
- Ternary operator (?:) in Bash
- SyntaxError invalid token
- What is the difference between ‘/’ and ‘//’ when used for division?
- Is there a difference between x++ and ++x in java?
- Printing variables in Python 3.4
- What does the “@” symbol do in PowerShell?
- Static Semantics meaning?
- What does the `and` keyword mean in OCaml?
- text highlight in markdown
- Error “‘type’ object has no attribute ‘__getitem__'” when iterating over list[“a”,”b”,”c”]
- Inline for loop
- What does ‘wb’ mean in this code, using Python?
- What does @@variable mean in Ruby?
- Python def marked as invalid syntax
- How do you format an unsigned long long int using printf?
- What are those pipe symbols for in Ruby?
- bash: syntax error near unexpected token `(‘ – Python
- Prolog “or” operator, query
- JSONDecodeError: Expecting value: line 1 column 1 (char 0)
- Cannot find module cv2 when using OpenCV
- What is the purpose and use of **kwargs? [duplicate]
- How can I run python in terminal on a mac?
- How to find all the indexes of a recurring item in a list?
- Is there a way to delete created variables, functions, etc from the memory of the interpreter?
- Code for Greatest Common Divisor in Python
- ‘DataFrame’ object has no attribute ‘sort’
- How to check Django version
- How to change the font size on a matplotlib plot
- How can I create a dropdown menu from a List in Tkinter?
- How to find all occurrences of a substring?
- Is There Any Way To Check if a Twitch Stream Is Live Using Python?
- Python Save to file
- Pytorch tensor to numpy array
- ‘numpy.ndarray’ object has no attribute ‘index’
- ‘numpy.float64’ object is not iterable
- Importing variables from another file?
- Difference between BeautifulSoup and Scrapy crawler?
- Python error – IDLE’s subprocess didn’t make connection. Either IDLE can’t start or personal firewall software is blocking connection
- Displaying better error message than “No JSON object could be decoded”
- Running Bash commands in Python
- Escape string Python for MySQL
- Effect of using sys.path.insert(0, path) and sys.path(append) when loading modules
- What is the best way to call a script from another script?
- Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings
- Python map object is not subscriptable
- Why does pycharm propose to change method to static
- append new row to old csv file python
- TypeError: only integer arrays with one element can be converted to an index 3
- In Flask, what is “request.args” and how is it used?
- How do I determine the size of an object in Python?
- Python function pointer
- How can I change the font size using seaborn FacetGrid?
- How to save an image locally using Python whose URL address I already know?
- How to throw error and exit with a custom message in python
- Python a &= b meaning?
- File “/usr/bin/pip”, line 9, in
from pip import main ImportError: cannot import name main