-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
15 lines (15 loc) · 822 Bytes
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<h2>Squares</h2>
<html>
<head></head>
<body>
<p>Declare a function <code class="language-python">sq_sum()</code> that calculates the squares for arguments passed into it and returns their sum.</p>
<pre><code class="language-python">print(sq_sum(1, 2, 2, 4)) # 25.0
print(sq_sum(1.5)) # 2.25
print(sq_sum(1, 10, 10)) # 201.0</code></pre>
<p>Your function is not supposed to print anything, just return the calculated sum.</p>
</body>
</html><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/8560">Show topic summary</a>