Base de conhecimentoCentro de Exames
PT · PTPortuguês (Portugal)
Escolher idioma13

CKTIS / Base de conhecimento

Base de conhecimento

Sintaxe, operadores e conceitos de programação. Encontra uma explicação, consulta um exemplo e continua a aprender.

Entradas: 5788

Python

logging.StreamHandler

StreamHandler escreve o texto e o terminador no fluxo indicado, por omissão sys.stderr, e chama flush.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

logging.warning

warning regista na raiz um aviso de nível WARNING (30).

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.ceil

Devolve o menor inteiro maior ou igual a x.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.comb

Conta escolhas de k posições entre n sem reposição nem ordem.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.cos

Calcula o cosseno de um ângulo em radianos, a coordenada horizontal no círculo unitário.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.e

Fornece uma aproximação em vírgula flutuante do número de Euler, base do logaritmo natural.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.factorial

Calcula o fatorial de um inteiro não negativo.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.floor

Devolve o maior inteiro que não excede x.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.fsum

Soma números de vírgula flutuante mantendo várias somas parciais.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.gcd

Devolve o máximo divisor comum não negativo de um número qualquer de inteiros.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.inf

Representa o infinito positivo do tipo float.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.isclose

Verifica se a diferença absoluta não excede o maior limite: tolerância absoluta ou relativa multiplicada pela maior magnitude.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.isfinite

Reconhece números finitos, incluindo os dois zeros com sinal.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.isinf

Deteta precisamente os infinitos positivo e negativo.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.isnan

Devolve um booleano que indica se o argumento é NaN.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.lcm

Calcula o mínimo múltiplo comum não negativo de inteiros.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.log

Calcula o expoente a que elevar a base para obter x.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.log10

Calcula o logaritmo decimal para comparar ordens de grandeza.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.log2

Devolve o expoente da potência de dois correspondente a x.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.nan

Fornece o valor float especial que indica a ausência de resultado numérico.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.perm

Conta escolhas ordenadas de k posições entre n sem repetição.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.pi

Fornece como float uma aproximação da razão entre o perímetro da circunferência e o diâmetro.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.prod

Multiplica os valores numéricos a partir do fator start, passado apenas por nome.

Intermédio · Python 3.14; repository image, production runtime not attested
Python

math.sin

Calcula o seno de um ângulo em radianos, a coordenada vertical no círculo unitário.

Intermédio · Python 3.14; repository image, production runtime not attested