Write a program to read today's data from user. Then display how many days are left in the current

preview_player
Показать описание
Q. Write a program to read today's data from user. Then display how many days are left in the current month.

Website Link :-

Sumita Arora Class 11 computer science chapter Python fundamental type C Q 2||

Answer :-

a = int(input("Enter the date of today = "))
print("Number of days left = ",30-a)

Output :-

Enter the date of today = 21
Number of days left = 9

Enter the date of today = 15
Number of days left = 15

Enter the date of today = 19
Number of days left = 11

python class 11 cbse chapter 1,
python class 11 cbse sumita arora,
python class 11 sumita arora chapter 2,
Рекомендации по теме
Комментарии
Автор

Thanks bhaiya u helped me to learn these programs it helped me a lot I was confused to find these solutions keep it up 🤗🤗🤗🤗🤗🤗🤗🤗🤗

shreyanshpal