Answers for "python if with and"

3

if in python

# if statment 
#'if' gives condition in statement to make program more efficient.
a=10
b=5
if a%b==0:
    print('true')

output:
true
Posted by: Guest on November-26-2021
1

or in if statement python

weather == "Good!" or weather == "Great!": 

# Or the following  

weather in ("Good!", "Great!"):
Posted by: Guest on April-03-2021
0

If or Python

x = 1; y = 1

if x == 1 or y == 1:
  print(x, y)
# 1 1
Posted by: Guest on October-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language