Answers for "what does // do in python ?"

2

what does % do in python

65 % 2
#This will be 1, since % will calculate the remainder of the variable
# % is the modulus operator
Posted by: Guest on April-23-2021
5

// in python

print(3 // 2)
# 1
print(3 / 2)
# 1.5
Posted by: Guest on October-26-2021

Code answers related to "what does // do in python ?"

Python Answers by Framework

Browse Popular Code Answers by Language