-2

What does // mean in python? When I was looking at scripts, I had seen it, but was unsure of its main function. Could someone please explain what it means?

The line with the code looked something like:

num = 5//x

1 Answers1

1

A simple google search

TLDF; it's floor division

Kenan
  • 13,156
  • 8
  • 43
  • 50
  • Yeah when I searched google the answers seemed pretty complicated and I didn't really understand. Thanks for telling me a simple answer that it is floor division. – Flex Tape Nov 20 '20 at 18:53