Python 3 integer division [duplicate]

Try this:

a = 1
b = 2
int_div  = a // b

Leave a Comment