I’m confused what are you trying to ask? What is the python?
Answer:
import datetime
user = input("Enter date in yyyy,m,d: ").split(",")
int_date = tuple([int(x) for x in user])
year, month, day =int_date
mydate = datetime.datetime(year, month, day)
print(mydate)
x = mydate.strftime("%B %d, %Y was a %A")
print(x)
Explanation:
The datetime python module is used to create date and time objects which makes it easy working with date-time values. The user input is converted to a tuple of integer items, then they are converted to date time objects and parsed to string with the strftime method.
Answer:
Explanation:
The following code is written in Java. I created both versions of the program that was described in the question. The outputs can be seen in the attached images below. Both versions are attached as txt files below as well.
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
txt
</span>
<span class="sg-text sg-text--link sg-text--bold sg-text--link-disabled sg-text--blue-dark">
txt
</span>
You should probably retry answering it. Or two people are already answering it.
-Edge
The elements in a string type array will be initialized to "Null".