Computer Science, asked by soheltadvi8, 11 hours ago

Its Python.

i know its very simple but its my first day of learning programming..
can u help​

Attachments:

Answers

Answered by anindyaadhikari13
4

\texttt{\textsf{\large{\underline{Appropriate Question}:}}}

  • Write a python program to calculate how many seconds are there in a month.

\texttt{\textsf{\large{\underline{Solution}:}}}

Here comes the solution for the problem.

month=30

hours=24

minutes=60

seconds=60

total_seconds=month*hours*minutes*seconds

print('The total number of seconds in a year is:',total_seconds)

\texttt{\textsf{\large{\underline{Explanation}:}}}

We know that a month has 30 days and each day has 24 hours.

So, total time in hours will be,

= 30 × 24

An hour has 60 minutes. So, total time in minutes is,

= 30 × 24 × 60

A minute has 60 seconds, So, total time in seconds will be,

= 30 × 24 × 60 × 60

In this way, we have calculated the total number of seconds in a month.

\texttt{\textsf{\large{\underline{O{u}tput}:}}}

The total number of seconds in a year is: 2592000

Attachments:

anindyaadhikari13: Thanks for the brainliest ^_^
Similar questions