Answers for "how to do if or function in python"

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
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

Code answers related to "how to do if or function in python"

Python Answers by Framework

Browse Popular Code Answers by Language