Q18
Computer ScienceChapter 04c: Python — Modules, Packages & Libraries
Question No. 18 (Group C)
Problem Statement
[User-Defined Function] Find the output: def triangle_type(a, b, c): if a == b and b == c: return "Equilateral Triangle" elif a == b or b == c or a == c: return "Isosceles Triangle" else: return "Scalene Triangle" x = 5 y = 5 z = 5 r = triangle_type(x, y, z) print(r)
High Frequency SEE Question Difficulty: Moderate