Warning
This page is located in archive.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
courses:be5b33prg:homeworks:right_triangle [2015/10/02 17:13]
svobodat created
courses:be5b33prg:homeworks:right_triangle [2016/11/04 16:02]
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.txt ยท Last modified: 2016/11/04 16:02 by xposik