“python o en la declaración if” Código de respuesta

Si o Python

x = 1; y = 1

if x == 1 or y == 1:
  print(x, y)
# 1 1
khuDDD

python o en la declaración if

weather = input("How's the weather? ")

if weather == "Good!" or weather == "Great!": 
	print('Glad to hear!')
else: 
	print('Too bad!')
Jolly Jellyfish

Si entonces más python

a = 200
b = 33
if b > a:
	print("b is greater than a")

elif a == b:
	print("a and b are equal")

else:
	print("a is greater than b")
Proud Penguin

Respuestas similares a “python o en la declaración if”

Preguntas similares a “python o en la declaración if”

Más respuestas relacionadas con “python o en la declaración if” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código