Any triangle will be defined as **Right Angled Triangle** if it follows **Pythagorus Theorem** which states that sum of squares of other sides is equal to square of largest side. Like if a triangle have 3, 6, 7 as length of sides, then sum of squares of 3^{2} + 6^{2} = 9 + 36 = 45 which is not equal to 7^{2} = 49. That’s why a triangle of length 3, 6, 7 is not a **Right Angled Triangle**.

This logic can be coded algorithmically as Python Code. Let’s see **Python Code for Checking whether a Triangle is right angled or not**.

```
# Checks if triangle is right angled or not using Python
a = float(input("Enter first side of triangle => "))
b = float(input("Enter second side of triangle => "))
c = float(input("Enter third side of triangle => "))
# Checks which side out of three a, b and c is largest
if (a >= b) and (a >= c):
largest_triangle_side = a
elif (b >= c) and (b >= a):
largest_triangle_side = b
else:
largest_triangle_side = c
# Applying Pythagorean theorem to check if triangle is Right Angled
# If a is largest side of triangle
if (largest_triangle_side == a):
if (b**2 + c**2 == a**2):
print("Triangle is Right Angled")
else:
print("Triangle is Not Right Angled")
# If b is largest side of triangle
if(largest_triangle_side == b):
if(c**2 + a**2 == b**2):
print("Triangle is Right Angled")
else:
print("Triangle is Not Right Angled")
# If c is largest side of triangle
if(largest_triangle_side == c):
if(a**2 + b**2 == c**2):
print("Triangle is Right Angled")
else:
print("Triangle is Not Right Angled")
```

**Output of Above Code**

```
Enter first side of triangle => 1
Enter second side of triangle => 2
Enter third side of triangle => 3
Triangle is Not Right Angled
```