Solution using functions without passing arguments
Solution using functions and by passing arguments
Solution : Without using function
Program/Source Code
Python program to convert total days to weeks and days
d=int(input("Enter total days ")) w=d//7 d=d%7 print(w," week ",d," days")