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
Trending now
This is a popular solution!
Step by step
Solved in 4 steps