Answers for "how to use if and or in python"

1

python if condition

a = 200
b = 33
if b > a:
  print("b is greater than a")
else:
  print("b is not greater than a")
Posted by: Guest on June-30-2021
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

Code answers related to "how to use if and or in python"

Python Answers by Framework

Browse Popular Code Answers by Language