Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
45 lines (36 loc) · 1.08 KB

File metadata and controls

45 lines (36 loc) · 1.08 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Operator Description Example Try it
# and Returns True if both statements are true x < 5 and x < 10
# or Returns True if one of the statements is true x < 5 or x < 4
# not Reverse the result, returns False if the result is true not(x < 5 and x < 10)
a=0
print ("If variable value is equal to 0 then True else False:::::::::",not(a),)
#Output Would be
#True
a=1
print ("If variable value is equal to 0 then True else False:::::::::",not(a),)
#Output Would be
#False
a=0;b=1
print ("One of Both Condition are satisfied then True else False:::::::::",(a>b) or (b>a),)
#Output Would be
#True
a=0;b=1
print ("Both Condition are satisfied then True else False:::::::::", (a>b) and (b>a),)
#Output Would be
#False
a=0;b=1
print ("Value are equal ?:::::::::", (a == b),)
#Output Would be
#False
a=0;b=0
print ("a is b are equal ?:::::::::", (a is b),)
#Output Would be
#True
a=0;b=0
print ("a is not equal to b ?:::::::::", (a is not b),)
#Output Would be
#False
a=0;b=1
print ("a is not equal to b ?:::::::::", (a is not b),)
#Output Would be
#True
Morty Proxy This is a proxified and sanitized view of the page, visit original site.