M Man Ly New member Sep 20, 2021 #1 What will be the output of the following Python code? Code: import datetime d=datetime.date(2016,7,24) print(d) A. Error B. 2017-07-24 C. 2017-7-24 D. 24-7-2017
What will be the output of the following Python code? Code: import datetime d=datetime.date(2016,7,24) print(d) A. Error B. 2017-07-24 C. 2017-7-24 D. 24-7-2017
L Lê Thị Thuỳ Trang New member Sep 20, 2021 #2 Answer: b Explanation: In the snippet of code shown above, we are simply printing the date entered by us. We enter the date in the format: yyyy,m,dd. The date is then printed in the format: yyyy-mm-dd. Hence the output is: 2017-07-24. Upvote 0 Downvote
Answer: b Explanation: In the snippet of code shown above, we are simply printing the date entered by us. We enter the date in the format: yyyy,m,dd. The date is then printed in the format: yyyy-mm-dd. Hence the output is: 2017-07-24.