0

Why do we need ( ) ?

Python

21st May 2020, 10:50 AM
Shy Lar
7 Answers
+ 1
Using for single result to expression or return
21st May 2020, 11:10 AM
Shahghasi Adil
Shahghasi Adil - avatar
21st May 2020, 10:54 AM
Oma Falk
Oma Falk - avatar
+ 3
i think, you are in the python lesson. just go on, it will become clearer.
21st May 2020, 10:55 AM
Oma Falk
Oma Falk - avatar
+ 1
Shy Lar yeah but in some cases if result was single no need. Such as return true Here is a single result return (a>b?a:b|| c>a?c:a)
21st May 2020, 11:16 AM
Shahghasi Adil
Shahghasi Adil - avatar
0
Where?
21st May 2020, 10:54 AM
ycsvenom
ycsvenom - avatar
0
Is it necessary?
21st May 2020, 11:11 AM
Shy Lar
0
It depends on the Case Shy Lar
21st May 2020, 11:12 AM
ycsvenom
ycsvenom - avatar