-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
13 lines (13 loc) · 1.33 KB
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
13
<h2>Day of the week</h2>
<html>
<head></head>
<body>
<p>In the topic, we haven't covered all possible codes you can use in the format strings. One such code is <code class="java">%A</code>, which represents the full name of the weekday: Sunday, Monday, and so on.</p>
<p>Write a function <code class="java">get_weekday</code> that takes a <code class="java">datetime</code> object and returns the string containing the corresponding weekday.</p>
<p>Note that you do NOT need to read the input, call the function, or print the result. Input and output examples are provided for you to test your code.</p>
</body>
</html><br><b>Sample Input:</b><br><pre><code class="language-no-highlight">2014-11-08</code></pre><br><b>Sample Output:</b><br><pre><code class="language-no-highlight">Saturday</code></pre><br><br><b>Sample Input:</b><br><pre><code class="language-no-highlight">2019-12-31<br></code></pre><br><b>Sample Output:</b><br><pre><code class="language-no-highlight">Tuesday</code></pre><br><br><br><font color="gray">Memory limit: 256 MB</font><br><font color="gray">Time limit: 15 seconds</font><br><br>
<b>Caution</b><br><br>
You may see errors in your code or execution results due to missing context. Don’t worry about it, just write the solution and press Check.
<br><br>
<a href="https://hyperskill.org/learn/step/9814">Show topic summary</a>