Exercício 03-03:

Complete a tabela a seguir utilizando a = True, b = False e c = True.

Expressão Resultado         Expressão Resultado
a and a   ○ True ○ False    a or c    ○ True ○ False
b and b   ○ True ○ False    b or c    ○ True ○ False
not c     ○ True ○ False    c or a    ○ True ○ False
not b     ○ True ○ False    c or b    ○ True ○ False
not a     ○ True ○ False    c or c    ○ True ○ False
a and b   ○ True ○ False    b or b    ○ True ○ False
b and c   ○ True ○ False

Resposta:

##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Quarta Edição - Março/2024 - ISBN 978-85-7522-886-9
#
# Site: https://python.nilo.pro.br/
#
# Arquivo: capitulo 03/exercicio-03-03.py
##############################################################################
# True (a and a)
# False (b and b)
# False (not c)
# True (not b)
# False (not a)
# False (a and b)
# False (b and c)
# True (a or c)
# True (b or c)
# True (a or c)
# True (b or c)
# True (c or a)
# True (c or b)
# True (c or c)
# False (b or b)
Clique aqui para baixar o arquivo