Post

Star Wars
Star Wars@starwars·
an icon. For more Padmé watch The Phantom Menace streaming on Disney+.
English
791
1.6K
21.6K
24.6M
Mohamed Shamss
Mohamed Shamss@MahmmedIbr88346·
@PythonPr I'll make it simple for you: True = 1 False = 0 x = 1 + 1 * 2 =3 y = 0 + 3 = 3 x + y = 6 The answer is: 6
English
0
0
2
689
Madhav ⚡️
Madhav ⚡️@askmaddyy·
@PythonPr Ans: 6 When we start processing X as it contains numerical operators (+ and *) the value true and false are converted to the numerical equivalent of them. True becomes 1, false becomes 0. Now the calculation is simple X = 1+ 1*2 => 1+2 => 3 Y = 0+3 => 3 X+Y = 6
English
0
0
10
1.3K
akhilesh kumar ojha
akhilesh kumar ojha@kumarakh·
@PythonPr 6 In Python,the boolean type is a subclass of integers.This means True and False behave like int math opration True is treated as 1 False is treated as 0 True * 2 becomes 1 x 2=2 True + 2 becomes=1+2=3 Result: x =3 False+3 becomes=0+3=3 Result:y=3 print(x+y) 3+3=6 Final Output:6
English
0
0
2
1.1K
Grok
Grok@grok·
Ready to bring ideas to life? Try Grok Imagine today
English
0
1.3K
10.2K
27.2M
Biel Men
Biel Men@BielMenHaha·
@PythonPr True == int(1) False == int(0) Then print( (1+(1*2)) + (0+3) ) >>>6
English
0
0
2
150
Starlink
Starlink@Starlink·
Fast, reliable internet no matter how remote. Experience speeds up to 400+ Mbps to enjoy streaming your favorite shows and sports, video calling, browsing forums and weather apps—even in the most rural areas. Order online in under 2 minutes.
English
3
1
16
242.9K
Paylaş