FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PythonLearning/07.BooleanOperators.py at Pythontuts · aditya0035/PythonLearning · GitHub
aditya0035
/
PythonLearning
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PythonLearning
/
07.BooleanOperators.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (26 loc) · 887 Bytes
Breadcrumbs
PythonLearning
/
07.BooleanOperators.py
Copy path
File metadata and controls
29 lines (26 loc) · 887 Bytes
Raw
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
'''
In python below are boolean operator which combine
two boolean values
1.and
2.or
3.not
Working of and operator
If first condition is false then it will not check for 2nd condition
and return the result of first condition ,If first is true then it will check
for 2nd condition and return result of 2nd value
Working of or Operator
Or operator check if first condition is True it didn't check for 2nd and return
the result of first condition,if first condition is false the it will check for
2nd condition and return the result of that.
Working of not Operator
this operator negate the result that make true to false or false to true
'''
print
(()
and
[])
print
((
'aditya,'
and
[]))
print
((
'aditya,'
and
[
'aditya'
,
'saraswat'
]))
print
(()
or
[])
print
((
'aditya'
)
or
[
"Aditya Saraswat"
])
print
(()
or
[
"Aditya Saraswat"
])
print
(
not
())
print
(
not
[])
print
([]
or
not
())
Back
|
FazBrowse Home
|
New Git URL