+ 1

Hi guys I just forgot the difference between using .union and pipe(|) operator in python.please explain there is one difference.

python set operation can be performed in two ways and I recently found the difference while coding a while ago... but now I couldn't recollect it... please explain it is anybody knows it.

9th Oct 2019, 10:07 PM
Sanjay Kumar
Sanjay Kumar - avatar
2 Respostas
0
Yeah but I remember I had one difference while using it within functions
10th Oct 2019, 2:37 AM
Sanjay Kumar
Sanjay Kumar - avatar
0
Yeah Bro... even I tried all this. ..but trust me there's one difference and I encountered it like a week before or something and I'm not abled to recall it
10th Oct 2019, 10:57 AM
Sanjay Kumar
Sanjay Kumar - avatar