Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Keywords: and, or, not | Boolean Type
Python Data Types
course content

Contenido del Curso

Python Data Types

Python Data Types

1. Numeric Types
2. Boolean Type
3. Strings

Keywords: and, or, not

There are some keywords for Boolean variables: and, or, not. They exist to create more complex expressions. Next we will see how it works with examples.

  • and. If value x = True and value y = True then x and y is equal to True. If either of those is False, then expression becomes False too.
  • or. If x = True or y = True then the expression x or y is equal to True (or both values = True).
  • not If value x is False then the expression, not x evaluates to True . Otherwise, the expression evaluates to False.

Tarea

You must fill in the blanks so that the values ​​of all expressions satisfy the conditions specified in the comments.

Tarea

You must fill in the blanks so that the values ​​of all expressions satisfy the conditions specified in the comments.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 2. Capítulo 3
toggle bottom row

Keywords: and, or, not

There are some keywords for Boolean variables: and, or, not. They exist to create more complex expressions. Next we will see how it works with examples.

  • and. If value x = True and value y = True then x and y is equal to True. If either of those is False, then expression becomes False too.
  • or. If x = True or y = True then the expression x or y is equal to True (or both values = True).
  • not If value x is False then the expression, not x evaluates to True . Otherwise, the expression evaluates to False.

Tarea

You must fill in the blanks so that the values ​​of all expressions satisfy the conditions specified in the comments.

Tarea

You must fill in the blanks so that the values ​​of all expressions satisfy the conditions specified in the comments.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 2. Capítulo 3
toggle bottom row

Keywords: and, or, not

There are some keywords for Boolean variables: and, or, not. They exist to create more complex expressions. Next we will see how it works with examples.

  • and. If value x = True and value y = True then x and y is equal to True. If either of those is False, then expression becomes False too.
  • or. If x = True or y = True then the expression x or y is equal to True (or both values = True).
  • not If value x is False then the expression, not x evaluates to True . Otherwise, the expression evaluates to False.

Tarea

You must fill in the blanks so that the values ​​of all expressions satisfy the conditions specified in the comments.

Tarea

You must fill in the blanks so that the values ​​of all expressions satisfy the conditions specified in the comments.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

There are some keywords for Boolean variables: and, or, not. They exist to create more complex expressions. Next we will see how it works with examples.

  • and. If value x = True and value y = True then x and y is equal to True. If either of those is False, then expression becomes False too.
  • or. If x = True or y = True then the expression x or y is equal to True (or both values = True).
  • not If value x is False then the expression, not x evaluates to True . Otherwise, the expression evaluates to False.

Tarea

You must fill in the blanks so that the values ​​of all expressions satisfy the conditions specified in the comments.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 2. Capítulo 3
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt