+ 1

Issue with python project.

Hey, got PRO recently to work on more projects, but ran into an issue with the project "21.3", it's in the else statement section of the python course. I've gotten all critierias correct except 1, but it is locked and I have no idea what to do. This is my code: Side1 = int(input("")) Side2 = int(input("")) Side3 = int(input("")) If Side1 + Side2 == Side3: print("Not right-angled") Else: print("Right-angles") I think it was criteria 4 I couldn't get, i'll have to double check and i'll leave it in the comments.

7th Jan 2021, 11:52 PM
Jonathan LĂ©ger
Jonathan LĂ©ger - avatar
13 Answers
+ 8
Jonathan LĂ©ger we are unable to check the link since we are non-pro users. Better to do it like this https://www.sololearn.com/Discuss/2659228/?ref=app
8th Jan 2021, 4:08 PM
Simba
Simba - avatar
+ 7
Rik Wittkopp ya, you're correct. But in description and comment, I can see some words like these, "Not right-angled" "Right-angles" and "Pythogoras" đŸ€” Jonathan LĂ©ger it would be good if you copy your task and paste it here. So we can understand your question clearly
8th Jan 2021, 2:48 AM
Simba
Simba - avatar
+ 5
Isn't pythagoras theorem equal to a**2 + b**2 = c**2 ?
8th Jan 2021, 2:33 AM
Simba
Simba - avatar
+ 5
I did the challenge a while back, and Rik Wittkopp and Simba are right. The challenge wants you to do this: a = int(input()) b = int(input()) c = int(input()) if a**2 + b**2 == c**2: print("Right-angled") else: print("Not Right-angled")
9th Jan 2021, 12:35 PM
McInventor29
McInventor29 - avatar
+ 3
Jonathan LĂ©ger No problem!
9th Jan 2021, 3:25 PM
McInventor29
McInventor29 - avatar
+ 2
Simba Isn't that only for right angle triangles? I am a bit rusty on my school math
8th Jan 2021, 2:38 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
As Simba correctly noted in an earlier post, the equation you require is: a**2 + b**2 = c**2 So a = int(input()) b = int(input()) c = int(input()) if a**2 + b**2 == c**2: print("Right-angled") else: print("Not Right-angled)
9th Jan 2021, 2:22 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
McInventor29 that worked, ty! I tried that when they first brought it up but it didn't work, so probably made a typo then
9th Jan 2021, 2:41 PM
Jonathan LĂ©ger
Jonathan LĂ©ger - avatar
+ 1
project : to pythogoras or not to pythogoras failed criteria : number 3
7th Jan 2021, 11:53 PM
Jonathan LĂ©ger
Jonathan LĂ©ger - avatar
+ 1
What happens if side1 + side2 are less than side3. Does this still make a triangle?
8th Jan 2021, 12:31 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
https://sololearn.com/coach/131/?ref=app Simba didn't know you could do this, usefull tl know for the future
8th Jan 2021, 1:29 PM
Jonathan LĂ©ger
Jonathan LĂ©ger - avatar
0
Simba hopefully this works. Pythagoras theorem says: In a right-angled triangle, the square of the hypotenuse side is equal to the sum of squares of the other two sides. Write a program that takes lengths of triangle sides as inputs, and output whether our triangle is right-angled or not. If the triangle is right-angled, the program should output "Right-angled", and "Not right-angled" if it's not. Sample Input 3 4 7 Sample Output Not right-angled
8th Jan 2021, 7:18 PM
Jonathan LĂ©ger
Jonathan LĂ©ger - avatar
- 2
A menu driven program to Create a List & INSERTING AN ELEMENT AT BEGINNING, END, AT A SPECIFIC POSITION, REMOVING FROM A SPECIFIC POSITION anyone know this answer of thus question if u know please share it in this Instagram id https://instagram.com/_antony_x_?igshid=xw69stf9veh0
8th Jan 2021, 11:22 AM
Antony Alexander
Antony Alexander - avatar