All Python Programs

All Programs

Basic Python Programs

Simple Python programs

If Condition Programs

If condition based Python Programs 

Looping based programs

program based on for loop, while loop, range

Searching and Sorting

Python Searching Programs
Python Sorting Programs

Python program to convert total days to weeks and days

Solution with out using functions
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")

Visitor Counter

0056755