Question: Complete the trace tables. 1 | def triangle _ type ( side 1 :int, side 2 :int, side 3 :int ) - > str: 2

Complete the trace tables.
1| def triangle_type(side1:int, side2:int, side3:int)->str:
2| if side1== side2== side3:
3| return "It is an equilateral triangle."
4| elif side1== side2 or side1== side3 or side2== side3:
5| return "It is an isosceles triangle."
6| else:
7| return "It is a scalene triangle."
8|
9| a = c =2
10| b =3
11| shape = triangle_type(a,b,c)
Initial Code
Known Bindings
Line 9
Line 10
Line 11
Call to triangle_type(
,
,
)=>
Line 1
Line
Line
Line

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!