CourseWare Wiki
Switch Term
Winter 2023 / 2024
Winter 2022 / 2023
Winter 2021 / 2022
Winter 2020 / 2021
Winter 2019 / 2020
Winter 2018 / 2019
Older
Search
Log In
old
courses
be5b33prg
homeworks
right_triangle
Warning
This page is located in archive. Go to the latest version of this
course pages
.
Differences
This shows you the differences between two versions of the page.
View differences:
Side by Side
Inline
Go
Link to this comparison view
2016/11/04 16:02 xposik [Right triangle]
2015/10/02 17:49 svobodat
2015/10/02 17:13 svobodat created
Go
Next revision
Previous revision
2016/11/04 16:02 xposik [Right triangle]
2015/10/02 17:49 svobodat
2015/10/02 17:13 svobodat created
Go
courses:be5b33prg:homeworks:right_triangle [2015/10/02 17:13]
svobodat
created
courses:be5b33prg:homeworks:right_triangle [2016/11/04 16:02]
(current)
xposik
[Right triangle]
Line 1:
Line 1:
====== Right triangle ======
====== Right triangle ======
+
+
<WRAP important round>
+
See the general [[courses:be5b33prg:tutorials:homeworks|homework guidelines]]!
+
</WRAP>
Create a text file ''triangle.py''. In it, define function ''is_right(a, b, c)'' which
Create a text file ''triangle.py''. In it, define function ''is_right(a, b, c)'' which
Line 7:
Line 11:
* returns ''False'' otherwise.
* returns ''False'' otherwise.
Assume that you will always get 3 positive integers as arguments. But DO NOT ASSUME that you will get them in any specific order!
Assume that you will always get 3 positive integers as arguments. But DO NOT ASSUME that you will get them in any specific order!
+
+
===== Grading: =====
+
* 3 points for automatic checks
+
* 1 point for manual evaluation (is the code readable)
courses/be5b33prg/homeworks/right_triangle.1443798828.txt.gz
· Last modified: 2015/10/02 17:13 by
svobodat