+ 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.
13 ответов
+ 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
+ 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
+ 5
Isn't pythagoras theorem equal to
a**2 + b**2 = c**2 ?
+ 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")
+ 3
Jonathan Léger No problem!
+ 2
Simba Isn't that only for right angle triangles?
I am a bit rusty on my school math
+ 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)
+ 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
+ 1
project : to pythogoras or not to pythogoras
failed criteria : number 3
+ 1
What happens if side1 + side2 are less than side3.
Does this still make a triangle?
0
https://sololearn.com/coach/131/?ref=app Simba didn't know you could do this, usefull tl know for the future
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
- 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