In: Computer Science
Write a program that implements the pseudocode below:
1. Ask the user for the number of days until finals. 2. Print out the weeks until finals (weeks = days // 7) 3. Print out the leftover days (leftover = days % 7) Note: Always have some labeling (identifying) text to explain the meaning of any numbers printed. And, do not forget to have your name and what the program does as comments in the beginning of your file.
#reading days
days=int(input("Enter number of days until finals: "))
#findign weeks
weeks=days//7
#findingleft over days
d=days%7
#printing details
print("Number of weeks left until finals : ",weeks);
print("Number of days left until finals : ",d);
Note : Please comment below if you have concerns. I am here to help you
If you like my answer please rate and help me it is very Imp for me