Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

How can I use x//2 operator in Python?

Asked by Dhananjay Singh Dec 13, 2023 935 views 1 answer
Share

About this question

I was building a program that can calculate the number of full weeks in a given number of days. How can I use “//” operator in Python to determine the whole number of weeks and also the remaining days left? 

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.