Python — The difference between / and //

Scriptopia
Dec 12, 2022

Python script that will explore the difference between the “/” and “//” operators.

The Python ‘/’ operator is used for standard division and can return floating point numbers.

The Python ‘//’ operator is used for floor division and will return int as output.

Be sure to check us out on YouTube for daily programming content.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Scriptopia
Scriptopia

Written by Scriptopia

Programming - Projects - Source Code available for everything - Scriptopia.co.uk

No responses yet

Write a response