right angle triangle python