please code in python Write a function called sooner_date that has 4 integer parameters. The first is a number between 1 and 12 (inclusive) that represents a month. 1 is January, 2 is February, etc. The second is a number between 1 and 31 (inclusive) that represents a day. The third parameter is another integer representing a month and the fourth is another integer parameter representing a day. So essentially you have 2 dates (the first 2 parameters and the second 2 parameters). Figure out which date would come sooner, then print out that date in the format month / day. Here are some examples of calling the function with different arguments. (The code executed is in blue, the output produced is in green): sooner_date(1, 1, 1, 2) 1 / 1 sooner_date(2, 5, 1, 3) 1 / 3 sooner_date(8, 25, 7, 30) 7 / 30
please code in python
Write a function called sooner_date that has 4 integer parameters. The first is a number
between 1 and 12 (inclusive) that represents a month. 1 is January, 2 is February, etc. The
second is a number between 1 and 31 (inclusive) that represents a day. The third parameter is
another integer representing a month and the fourth is another integer parameter representing
a day. So essentially you have 2 dates (the first 2 parameters and the second 2 parameters).
Figure out which date would come sooner, then print out that date in the format month / day.
Here are some examples of calling the function with different arguments. (The code executed is
in blue, the output produced is in green):
sooner_date(1, 1, 1, 2)
1 / 1
sooner_date(2, 5, 1, 3)
1 / 3
sooner_date(8, 25, 7, 30)
7 / 30
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)