- 1

What does "|" means? (PYTHON)

11th Apr 2022, 6:00 AM
Pablo PC
Pablo PC - avatar
2 Respuestas
+ 2
Hi! Is it upercase i, lowercase L, or a bitwise operator? They almost look same on my screen; put it in an context: l = [1, 2, 3] I = iter(G) 10 | 1
11th Apr 2022, 6:11 AM
Per Bratthammar
Per Bratthammar - avatar
0
The meaning of "|" is "or" read the example below and replace "|" with "or" when you are reading the code and you will understund a = 5 if a>4 | a==7: print("you are inside hh") else: print("you are outside hh")
11th Apr 2022, 9:01 AM
L7afa