Try this:
a = 1
b = 2
int_div = a // b
More Related Contents:
- Why does integer division yield a float instead of another integer?
- Integer division in Python 2 and Python 3
- Floor division with negative number
- a pythonic way of doubling consecutive binary bits [closed]
- How to display position of an element in an array? [closed]
- How to blit a random image from a list Pygame [duplicate]
- User input integer list [duplicate]
- How to make Firefox headless programmatically in Selenium with Python?
- Lag when win.blit() background pygame
- How do I format a string using a dictionary in python-3.x?
- How can I use `return` to get back multiple values from a for loop? Can I put them in a list?
- How do I resolve a TesseractNotFoundError?
- Accessing attributes on literals work on all types, but not `int`; why? [duplicate]
- Print list of lists in separate lines
- OpenCV for Python 3.x under Windows [duplicate]
- Python 2 and Python 3 dual development
- Tkinter window says (not responding) but code is running
- Unsupported operation :not writeable python
- Python 3.3 and Installing PyOpenSSL on a Mac
- How to remove punctuation marks from a string in Python 3.x using .translate()?
- Replacing placeholder for tensorflow v2
- changing the class of a python object (casting)
- Is cube root integer?
- Why won’t this ctypes code work with Python 3.3 but will work with Python 2.7?
- Why isn’t .ico file defined when setting window’s icon?
- Printing result of the zip() function in Python 3 gives “zip object at ” [duplicate]
- FutureWarning: The default value of regex will change from True to False in a future version
- Multiple keys per value
- Python: can’t assign to literal
- Python making combined bar and line plot with secondary y-axis