Manufaturação industrial
Internet das coisas industrial | Materiais industriais | Manutenção e reparo de equipamentos | Programação industrial |
home  MfgRobots >> Manufaturação industrial >  >> Industrial programming >> python

Domine Python com testes interativos reais de Python – teste suas habilidades


Verifique seu progresso no aprendizado de Python e leve suas habilidades para o próximo nível com os testes interativos do Real Python.

Criamos esses testes Python online como uma maneira divertida de verificar seu progresso de aprendizado e testar suas habilidades.

Cada questionário conduz você por uma série de perguntas. Alguns deles são de múltipla escolha, alguns solicitarão que você digite uma resposta e alguns exigirão que você escreva código Python real. À medida que você avança em cada questionário, ele registra as perguntas que você respondeu corretamente.

Ao final de cada teste você recebe uma nota com base no seu resultado. Se você não acertar 100% na primeira tentativa, não se preocupe! Esses testes têm como objetivo desafiá-lo e espera-se que você os realize várias vezes, melhorando sua pontuação a cada corrida.

Faça o teste: Teste seus conhecimentos com nosso questionário interativo “Teste de habilidade em Python”. Você receberá uma pontuação após a conclusão para ajudá-lo a acompanhar seu progresso de aprendizagem:



Teste Interativo

Teste de habilidade em Python

Teste seu conhecimento de Python em um teste de habilidades com perguntas básicas a avançadas. Você é iniciante, intermediário, proficiente ou especialista?









Teste Interativo

Uma introdução prática ao web scraping em Python


Neste teste, você testará sua compreensão de web scraping em Python. Web scraping é uma ferramenta poderosa para coleta e análise de dados. Ao trabalhar neste questionário, você revisitará como analisar dados de sites usando métodos de string, expressões regulares e analisadores de HTML, bem como interagir com formulários e outros componentes de sites.



Teste Interativo

Verificador de tipo ty do Astral para Python


Teste seu conhecimento sobre o ty do Astral - um verificador de tipo Python extremamente rápido e com tecnologia Rust. Você abordará a instalação, o uso, a configuração de regras e as limitações atuais da ferramenta.









Teste Interativo

Entrada e saída básicas em Python


Neste teste, você testará sua compreensão das funções integradas do Python para interação do usuário, ou seja, input() e print(). Essas funções permitem capturar a entrada do usuário no teclado e exibir a saída no console, respectivamente.



Teste Interativo

Sopa linda:construa um web scraper com Python


Neste teste, você testará sua compreensão de web scraping usando Python. Ao trabalhar neste teste, você revisitará como inspecionar a estrutura HTML de um site de destino, decifrar dados codificados em URLs e usar Requests e Beautiful Soup para extrair e analisar dados.



Teste Interativo

Operadores bit a bit em Python


Teste sua compreensão dos operadores bit a bit do Python revisitando conceitos básicos como AND, OR, XOR, NOT bit a bit, turnos, máscaras de bits e suas aplicações.



Teste Interativo

Crie um blog usando Django, GraphQL e Vue


Neste quiz, você testará sua compreensão sobre a construção de um back-end de blog Django e um front-end Vue, usando GraphQL para comunicação entre eles. Isso ajudará você a dissociar back-end e front-end, lidar com a persistência de dados na API e exibir os dados em um aplicativo de página única (SPA).



Teste Interativo

Construa um sintetizador de guitarra


Neste quiz, você testará sua compreensão sobre o que é necessário para construir um sintetizador de guitarra em Python. Ao trabalhar neste questionário, você revisitará alguns conceitos-chave da teoria musical e da síntese sonora.



Teste Interativo

Construa uma tabela hash em Python com TDD


Aprenda como o hash do Python espalha valores em buckets e alimenta tabelas de hash. Pratique colisões, distribuição uniforme e desenvolvimento orientado a testes.



Teste Interativo

Construa um chatbot LLM RAG com LangChain


Neste questionário, você testará sua compreensão sobre a construção de um chatbot de geração aumentada de recuperação (RAG) usando LangChain e Neo4j. Esse conhecimento permitirá que você crie chatbots personalizados que podem recuperar e gerar respostas contextualmente relevantes com base em dados estruturados e não estruturados.







Teste Interativo

Construa interfaces de linha de comando com argparse do Python


Neste quiz, você testará sua compreensão sobre a criação de interfaces de linha de comando (CLIs) em Python usando o módulo argparse. Esse conhecimento é essencial para a criação de aplicativos de linha de comando fáceis de usar, comuns em desenvolvimento, ciência de dados e administração de sistemas.







Teste Interativo

Escolhendo a melhor fonte para programação


Neste quiz você testará sua compreensão de como escolher a melhor fonte para sua programação diária. Você receberá perguntas sobre os aspectos técnicos e recursos a serem considerados ao escolher uma fonte de programação e atualizará seu conhecimento sobre como identificar uma fonte de codificação de alta qualidade.







Teste Interativo

Estruturas de fluxo de controle em Python


Neste teste, você testará sua compreensão das estruturas de fluxo de controle do Python, que incluem condicionais, loops, tratamento de exceções e correspondência de padrões estruturais. Fortalecer essas habilidades o ajudará a escrever código Python mais dinâmico, inteligente e robusto.







Teste Interativo

Classes de dados em Python


Neste teste, você testará sua compreensão das classes de dados Python.As classes de dados, um recurso introduzido no Python 3.7, são um tipo de classe usada principalmente para armazenar dados.Elas vêm com funcionalidades básicas já implementadas, como inicialização, impressão e comparação de instâncias.



Teste Interativo

Cópias profundas versus superficiais em Python


Teste sua compreensão sobre cópia profunda e superficial em Python. Revise a atribuição, a identidade e como copiar objetos complexos corretamente.



Teste Interativo

Definindo e chamando funções Python


Pratique definir e chamar funções em Python, incluindo parâmetros, tipos de argumentos, valores padrão e documentação de funções.



Teste Interativo

Definindo e chamando funções Python


Neste quiz, você testará sua compreensão de como definir suas próprias funções Python. Você revisitará o básico e a sintaxe mais complexa, como args e kwargs, para aprimorar seu conhecimento sobre definições de funções em Python.



Teste Interativo

Definindo funções principais em Python


Neste teste, você testará sua compreensão da função main() do Python e da variável especial __name__. Com esse conhecimento, você será capaz de compreender as melhores práticas para definir main() em Python.



Teste Interativo

Definindo sua própria função Python


Neste teste, você testará sua compreensão sobre como definir e chamar funções Python. Você revisitará a palavra-chave def, parâmetros, argumentos e muito mais.







Teste Interativo

Dicionários em Python


Teste seu conhecimento sobre o tipo de dados dict do Python:como criar, acessar e modificar pares de valores-chave usando métodos e operadores integrados.



Teste Interativo

Documentando código Python:um guia completo


Neste teste, você testará sua compreensão sobre documentação de código Python. Com esse conhecimento, você poderá documentar com eficácia seus scripts e projetos Python, tornando-os mais compreensíveis e fáceis de manter.





Teste Interativo

Testes eficazes com Pytest


Neste teste, você testará sua compreensão do pytest, uma ferramenta de teste Python. Com esse conhecimento, você poderá escrever testes mais eficientes e eficazes, garantindo que seu código se comporte conforme o esperado.



Teste Interativo

Explore seu conjunto de dados com pandas


Teste os fundamentos do seu pandas:estruturas principais, indexação, filtragem, agrupamento, dtypes e combinação de DataFrames.





Teste Interativo

Explorando palavras-chave em Python


Teste sua compreensão das palavras-chave Python, incluindo a diferença entre palavras-chave regulares e simples, categorias de palavras-chave e armadilhas comuns.



Teste Interativo

Explorando Protocolos em Python


Teste seu conhecimento sobre protocolos Python, subtipagem estrutural e verificação de tipo estático, incluindo uso genérico e de subprotocolo.



Teste Interativo

Explorando encerramentos Python:exemplos e casos de uso


Neste teste, você testará sua compreensão dos encerramentos do Python. Closures são um recurso comum em linguagens de programação funcionais e são particularmente populares em Python porque permitem criar decoradores baseados em funções.



Teste Interativo

Explorando strings T em Python


Explore as strings t do Python, incluindo sua sintaxe, casos de uso e diferenças entre strings f e abordagens mais antigas.





Teste Interativo

Primeiros passos com LangChain


Grandes modelos de linguagem (LLMs) conquistaram o mundo. Neste curso em vídeo passo a passo, você aprenderá a usar a biblioteca LangChain para construir aplicativos assistidos por LLM.





Teste Interativo

O formato flutua nas strings F


Neste teste, você testará sua compreensão de como formatar floats em strings F em Python. Esse conhecimento permitirá que você controle a precisão e a aparência dos números de ponto flutuante ao incorporá-los em strings formatadas.



Teste Interativo

Programação funcional em Python:quando e como usá-la


Neste quiz, você testará sua compreensão de programação funcional em Python. Você revisitará conceitos como funções que são cidadãos de primeira classe em Python, o uso da palavra-chave lambda e a implementação de código funcional usando map(), filter() e reduzir().





Teste Interativo

Gere imagens com DALL·E e a API OpenAI


Neste quiz, você testará sua compreensão sobre geração de imagens com DALL·E por OpenAI usando Python. Você revisitará conceitos como o uso da biblioteca OpenAI Python, fazendo chamadas de API para geração de imagens, criando imagens a partir de prompts de texto e convertendo strings Base64 em arquivos de imagem PNG.





Teste Interativo

Introdução ao Django:crie um aplicativo de portfólio


Neste quiz, você testará sua compreensão do Django, um framework web Python completo. Ao trabalhar neste quiz, você revisitará as etapas para criar uma aplicação web totalmente funcional e aprenderá sobre alguns dos recursos mais importantes do Django.



Teste Interativo

Primeiros passos com FastAPI


Este teste prático testará seu conhecimento sobre os fundamentos do FastAPI, desde instalação e endpoints até respostas JSON automáticas e UI Swagger.



Teste Interativo

Getters e Setters:Gerencie atributos em Python


Neste teste, você testará sua compreensão dos métodos getter e setter do Python, bem como das propriedades. Você aprenderá quando usar essas ferramentas e como elas podem ajudar a manter o encapsulamento em suas aulas.



Teste Interativo

Introdução aos recursos assíncronos em Python


Neste teste, você testará sua compreensão de programação assíncrona em Python. Você revisitará os conceitos de programas síncronos e assíncronos e por que talvez queira escrever um programa assíncrono. Você também testará seu conhecimento sobre como usar os recursos assíncronos do Python.





Teste Interativo

Introdução ao Python IDLE


Neste teste, você testará sua compreensão do Python IDLE, o ambiente de desenvolvimento integrado (IDE) padrão que vem com todas as instalações do Python. Você revisitará como interagir com Python diretamente no IDLE, editar e executar arquivos Python.



Teste Interativo

Primeiros passos com testes em Python


Neste teste, você testará sua compreensão dos testes Python. Com esse conhecimento, você será capaz de criar testes básicos, executá-los e encontrar bugs antes dos usuários.



Teste Interativo

Ações do GitHub para Python


Neste teste, você testará sua compreensão do GitHub Actions para Python. Ao trabalhar neste questionário, você revisitará como usar ações e fluxos de trabalho do GitHub para automatizar linting, testes e implantação de um projeto Python.





Teste Interativo

Como você pode estruturar seu script Python?


Neste quiz, você testará sua compreensão sobre organização e estruturação de scripts Python. Você revisitará os principais conceitos sobre as práticas recomendadas para escrever código Python claro, sustentável e executável.



Teste Interativo

Como você escolhe nomes de funções Python?


Neste quiz, você testará sua compreensão de como escolher nomes de funções Python. Ao trabalhar neste quiz, você revisitará as regras e convenções para nomear funções Python e por que elas são importantes para escrever código Pythonic.





Teste Interativo

Como adicionar Python ao PATH


Teste seu conhecimento sobre a variável PATH e aprenda como adicionar Python no Windows, Linux e macOS para facilitar o acesso ao terminal.



Teste Interativo

Como verificar se uma string Python contém uma substring


Neste teste, você verificará sua compreensão sobre a melhor maneira de verificar se uma string Python contém uma substring. Você também revisitará maneiras idiomáticas de inspecionar ainda mais a substring, combinar substrings com condições usando expressões regulares e pesquisar substrings em pandas.





Teste Interativo

Como criar um projeto Django


Verifique suas habilidades de configuração do Django. Instale com segurança e fixe os requisitos, crie um projeto e um aplicativo. Comece a construir seu primeiro site.



Teste Interativo

Como criar tabelas dinâmicas com pandas


Este teste foi elaborado para aprimorar um pouco mais seu conhecimento sobre tabelas dinâmicas. Você não encontrará todas as respostas lendo o tutorial, então precisará investigar por conta própria. Ao encontrar todas as respostas, você certamente aprenderá outras coisas interessantes ao longo do caminho.



Teste Interativo

Como lidar com dados ausentes em Polars


Este questionário testará seu conhecimento sobre como trabalhar com dados nulos no Polars. Você não encontrará todas as respostas no tutorial, então precisará fazer algumas investigações extras. Ao encontrar todas as respostas, você certamente aprenderá algumas coisas interessantes ao longo do caminho.



Teste Interativo

Como depurar erros comuns do Python


Faça este teste para revisar as principais técnicas de depuração do Python, como leitura de tracebacks, uso de print() e configuração de pontos de interrupção para encontrar e corrigir erros.



Teste Interativo

Como eliminar valores nulos em pandas


Faça um teste sobre pandas .dropna():remova nulos, limpe dados ausentes e prepare DataFrames para análises precisas.





Teste Interativo

Como encontrar um valor absoluto em Python


Neste teste, você testará seu conhecimento sobre cálculo de valores absolutos em Python, dominando funções integradas e casos de uso comuns para melhorar sua precisão de codificação.



Teste Interativo

Como nivelar uma lista de listas em Python


Neste teste, você testará sua compreensão de como nivelar uma lista em Python. Achatar uma lista envolve converter uma lista multidimensional, como uma matriz, em uma lista unidimensional. Esta é uma operação comum ao trabalhar com dados armazenados como listas aninhadas.



Teste Interativo

Como agrupar dados usando Polars .group_by()


Coloque suas habilidades Polars .group_by() e de agregação à prova. Este teste vai além do tutorial, então você precisará se aprofundar para encontrar todas as respostas.



Teste Interativo

Como instalar Python em seu sistema:um guia


Neste teste, você testará sua compreensão sobre como instalar ou atualizar o Python em seu computador. Com esse conhecimento, você poderá configurar o Python em vários sistemas operacionais, incluindo Windows, macOS e Linux.







Teste Interativo

Como juntar strings em Python


Teste sua compreensão do método de string .join() do Python para combinar strings, lidar com casos extremos e otimizar o desempenho.



Teste Interativo

Como gerenciar projetos Python com pyproject.toml


Neste teste, você testará sua compreensão do arquivo pyproject.toml do Python, que simplifica a configuração do projeto Python ao unificar a configuração do pacote, gerenciar dependências e simplificar compilações.





Teste Interativo

Como remover itens de listas em Python


Neste teste, você testará sua compreensão sobre como remover itens de listas em Python. Esta é uma habilidade fundamental na programação Python, e dominá-la permitirá que você manipule listas de maneira eficaz.



Teste Interativo

Como redefinir um índice DataFrame do pandas


Este teste desafiará seu conhecimento sobre como redefinir índices em DataFrames do pandas. Você não encontrará todas as respostas no tutorial, então precisará fazer algumas investigações extras. Ao encontrar todas as respostas, você certamente aprenderá algumas coisas interessantes ao longo do caminho.



Teste Interativo

Como executar seus scripts Python


Uma das habilidades mais importantes que você precisa desenvolver como desenvolvedor Python é ser capaz de executar scripts e códigos Python. Teste sua compreensão sobre o quão bom você é na execução de seu código.





Teste Interativo

Como dividir uma string em Python


Neste teste, você testará sua compreensão do método .split() do Python. Este método é útil para tarefas de processamento de texto e análise de dados, permitindo dividir uma string em uma lista de substrings com base em um delimitador especificado.



Teste Interativo

Como retirar caracteres de uma string Python


Neste teste, você testará sua compreensão dos métodos .strip(), .lstrip() e .rstrip() do Python, bem como .removeprefix() e .removesuffix(). Esses métodos são úteis para tarefas como limpeza de entradas do usuário, padronização de nomes de arquivos e preparação de dados para armazenamento.



Teste Interativo

Como usar expressões condicionais com NumPy where()


Este teste tem como objetivo testar sua compreensão da função np.where(). Você não encontrará todas as respostas no tutorial, então precisará fazer pesquisas adicionais. É recomendável que você certifique-se de fazer todos os exercícios do tutorial antes de responder a este teste. Aproveitar!



Teste Interativo

Como usar geradores e rendimento em Python


Neste teste, você testará sua compreensão dos geradores Python e da declaração de rendimento. Com esse conhecimento, você será capaz de trabalhar com grandes conjuntos de dados de uma forma mais Pythonica, criar funções e expressões geradoras e construir pipelines de dados.



Teste Interativo

Como usar o Git:um guia para iniciantes


Teste seu conhecimento sobre os conceitos básicos do Git:inicializando repositórios, preparando arquivos, confirmando snapshots e gerenciando o histórico do seu projeto.









Teste Interativo

Como usar Python:seus primeiros passos


Revise os fundamentos do Python com este teste. Pratique sintaxe, palavras-chave, variáveis, erros e ferramentas que todo iniciante deve conhecer.



Teste Interativo

Como usar sorted() e .sort() em Python


Neste teste, você testará sua compreensão de classificação em Python usando sorted() e .sort(). Você revisitará como classificar vários tipos de dados em diferentes estruturas de dados, personalizar a ordem e trabalhar com duas maneiras diferentes de classificação em Python.





Teste Interativo

Como trabalhar com Polars LazyFrames


Este teste desafiará seu conhecimento sobre como trabalhar com Polars LazyFrames. Você não encontrará todas as respostas no tutorial, então precisará fazer algumas investigações extras. Ao encontrar todas as respostas, você certamente aprenderá algumas coisas interessantes ao longo do caminho.



Teste Interativo

Como escrever um belo código Python com PEP 8


Neste quiz, você testará sua compreensão do PEP 8, a proposta de aprimoramento do Python que fornece diretrizes e práticas recomendadas sobre como escrever código Python. Ao trabalhar neste questionário, você revisitará as principais diretrizes estabelecidas no PEP 8 e como configurar seu ambiente de desenvolvimento para escrever código Python compatível com PEP 8.



Teste Interativo

Como escrever documentos em Python


Teste seu conhecimento sobre docstrings Python, incluindo sintaxe, convenções, formatos e como acessar e gerar documentação.



Teste Interativo

Transformadores de Rosto Abraçando


Neste teste, você testará sua compreensão da biblioteca Hugging Face Transformers. Esta biblioteca é uma escolha popular para trabalhar com modelos de transformadores em tarefas de processamento de linguagem natural, visão computacional e outras aplicações de aprendizado de máquina.



Teste Interativo

Implementando uma interface em Python


Neste quiz, você testará sua compreensão das interfaces Python e seu papel na engenharia de software. Você aprenderá como as interfaces podem ajudar a gerenciar a complexidade em um aplicativo em crescimento e como implementá-las em Python.





Teste Interativo

Herança e composição:um guia de POO em Python


Neste teste, você testará sua compreensão de herança e composição em Python. Esses são dois conceitos principais da programação orientada a objetos que ajudam a modelar o relacionamento entre duas classes. Ao trabalhar neste questionário, você revisitará como usar herança e composição em Python, modelar hierarquias de classes e usar herança múltipla.



Teste Interativo

Instalar e executar aplicativos Python usando pipx


Neste quiz, você testará sua compreensão de como aplicativos Python são executados em ambientes virtuais isolados usando a ferramenta pipx. Com esse conhecimento, você poderá executar com segurança aplicativos Python instalados globalmente em seu sistema operacional.



Teste Interativo

Interagindo com Python


Teste seu conhecimento sobre REPL do Python, executando scripts a partir de arquivos, usando IDEs e editores de código e Jupyter Notebooks.





Teste Interativo

Apresentando o DuckDB


Este teste desafiará seu conhecimento de como trabalhar com DuckDB. Você não encontrará todas as respostas no tutorial, então precisará fazer algumas investigações extras. Ao encontrar todas as respostas, você certamente aprenderá algumas coisas interessantes ao longo do caminho.









Teste Interativo

Iteradores e Iteráveis em Python:Execute Iterações Eficientes


Neste teste, você testará sua compreensão dos iteradores e iteráveis do Python. Ao trabalhar neste questionário, você revisitará como criar e trabalhar com iteradores e iteráveis, as diferenças entre eles e revisará como usar funções geradoras.



Teste Interativo

LangGraph:Crie agentes de IA com estado em Python


Faça este teste para testar sua compreensão do LangGraph, uma biblioteca Python projetada para aplicativos Large Language Model (LLM) com estado, cíclicos e multiatores. Ao responder a este questionário, você revisitará como construir fluxos de trabalho e agentes LLM no LangGraph.



Teste Interativo

Regressão Linear em Python


Neste teste, você testará seu conhecimento sobre regressão linear em Python. A regressão linear é uma das técnicas fundamentais de estatística e aprendizado de máquina, e Python é uma escolha popular para aprendizado de máquina.





Teste Interativo

Listas versus tuplas em Python


Desafie-se com este teste para avaliar e aprofundar sua compreensão das listas e tuplas do Python. Você explorará conceitos-chave, como criar, acessar e manipular esses tipos de dados, ao mesmo tempo que aprenderá as práticas recomendadas para usá-los com eficiência em seu código.





Teste Interativo

Login em Python


Neste teste, você testará sua compreensão do módulo de registro em Python. Com esse conhecimento, você poderá adicionar log aos seus aplicativos, o que pode ajudá-lo a depurar erros e analisar o desempenho.







Teste Interativo

marimo:um caderno reativo e reproduzível


Este teste é uma ótima maneira de reforçar e desenvolver o que você aprendeu sobre os cadernos Marimo. Você encontrará a maioria das respostas no tutorial, mas precisará fazer pesquisas adicionais para encontrar algumas das respostas.



Teste Interativo

Dominando Loops While


Pratique a iteração indefinida usando o loop "while" do Python. Teste seu conhecimento sobre loops, palavras-chave e práticas recomendadas do Python hoje mesmo.



Teste Interativo

Model-View-Controller (MVC) em aplicativos Web Python:explicado com Lego


Neste teste, você testará sua compreensão do padrão de design Model-View-Controller (MVC), um conceito fundamental em muitos frameworks web Python. Ao trabalhar neste questionário, você revisitará os conceitos de modelos, visualizações e controladores e como eles se relacionam com exemplos concretos de desenvolvimento web.



Teste Interativo

Linting Python moderno com Ruff


Teste suas habilidades no Ruff em um teste rápido. Pratique verificações de instalação, linting contínuo, formatação, seleção de regras, correções automáticas e configuração.



Teste Interativo

Namespaces e escopo em Python


Neste teste, você testará sua compreensão dos namespaces e do escopo de variáveis do Python. Esses conceitos são cruciais para organizar os nomes simbólicos atribuídos aos objetos em um programa Python e garantir que eles não interfiram entre si.



Teste Interativo

Namespaces em Python


Neste teste, você testará sua compreensão dos namespaces Python. Esses conceitos são cruciais para organizar os nomes simbólicos atribuídos aos objetos em um programa Python e garantir que eles não interfiram entre si.



Teste Interativo

Loops aninhados em Python


Os loops aninhados permitem executar ações repetidas em várias sequências, mas há mais? Teste sua compreensão sobre loops aninhados em Python!



Teste Interativo

Exemplos práticos do NumPy:técnicas úteis


Este teste testará sua compreensão de como trabalhar com arrays NumPy. Você não encontrará todas as respostas no tutorial, então precisará fazer algumas investigações extras. Ao encontrar todas as respostas, você certamente aprenderá algumas coisas interessantes ao longo do caminho.





Teste Interativo

Operadores e Expressões em Python


Teste sua compreensão de operadores e expressões em Python, incluindo operadores aritméticos, de comparação, booleanos e de identidade.



Teste Interativo

Polares vs pandas:Qual é a diferença?


Faça este teste para testar seu conhecimento do tutorial Polars vs pandas e revise as principais diferenças entre essas bibliotecas Python de código aberto.



Teste Interativo

Engenharia Prática de Prompt


Neste teste, você testará sua compreensão de técnicas de engenharia imediata com grandes modelos de linguagem (LLMs), como GPT-3.5 e GPT-4. Você revisitará como trabalhar com a API da OpenAI, aplicará técnicas de engenharia imediata a exemplos práticos e usará várias estratégias para melhorar seus resultados.



Teste Interativo

Primário sobre modelos Jinja


Neste teste, você testará sua compreensão dos modelos Jinja. Jinja é uma ferramenta poderosa para construir modelos ricos em aplicativos web Python e também pode ser usado para criar arquivos de texto com conteúdo programático.



Teste Interativo

Primário sobre decoradores Python


Neste quiz, você revisitará os conceitos básicos do que são decoradores Python e como criá-los e usá-los.



Teste Interativo

Criando perfis de desempenho em Python


Teste seu conhecimento sobre ferramentas de criação de perfil e desempenho do Python. Pratique a identificação de gargalos e o uso de criadores de perfil como cProfile e timeit.





Teste Interativo

Pydantic:simplificando a validação de dados em Python


Neste teste, você testará sua compreensão do Pydantic, uma poderosa biblioteca de validação de dados para Python. Você revisitará conceitos como trabalhar com esquemas de dados, escrever validadores personalizados, validar argumentos de função e gerenciar configurações com pydantic-settings.



Teste Interativo

Python 3.13:novos recursos interessantes para você experimentar


Neste quiz, você testará sua compreensão dos novos recursos introduzidos no Python 3.13. Ao responder a este questionário, você revisará as principais atualizações e melhorias nesta versão do Python.



Teste Interativo

Python 3.13:threading gratuito e um compilador JIT


Neste quiz, você testará sua compreensão dos novos recursos do Python 3.13. Você revisitará como compilar uma construção Python personalizada, desabilitar o Global Interpreter Lock (GIL), habilitar o compilador Just-In-Time (JIT) e muito mais.



Teste Interativo

Python 3.14:novos recursos interessantes para você experimentar


Neste quiz, você testará sua compreensão dos novos recursos introduzidos no Python 3.14. Ao responder a este questionário, você revisará as principais atualizações e melhorias nesta versão do Python.









Teste Interativo

APIs Python e REST:interagindo com serviços da Web


Neste quiz, você testará sua compreensão das APIs REST e como interagir com elas usando Python. Com esse conhecimento, você será capaz de recuperar, analisar, atualizar e manipular dados fornecidos por qualquer API RESTful de seu interesse.



Teste Interativo

Anotações Python


Teste seu conhecimento sobre anotações e dicas de tipo, incluindo como diferentes versões do Python as avaliam em tempo de execução.



Teste Interativo

Args e kwargs do Python:desmistificados


Neste teste, você testará sua compreensão de como usar *args e **kwargs em Python. Com esse conhecimento, você poderá adicionar mais flexibilidade às suas funções.



Teste Interativo

Noções básicas de Python:construindo sistemas com classes


Você pode usar classes para construir sistemas complexos em Python. Ao compor classes, herdar de outras classes e substituir o comportamento da classe, você aproveitará o poder da programação orientada a objetos (OOP).





Teste Interativo

Noções básicas de Python:lógica condicional e fluxo de controle


Com a lógica condicional, você pode escrever programas que executam ações diferentes com base em condições diferentes. Combinada com funções e loops, a lógica condicional permite escrever programas complexos que podem lidar com muitas situações diferentes.



Teste Interativo

Noções básicas de Python:dicionários


Os dicionários Python, como listas e tuplas, armazenam uma coleção de objetos. No entanto, em vez de armazenar objetos em uma sequência, os dicionários armazenam informações em pares de dados chamados pares de valores-chave.



Teste Interativo

Noções básicas de Python:operações do sistema de arquivos


O módulo pathlib permite realizar operações de caminho de arquivo com Python. Essas operações incluem criar, iterar, pesquisar, mover e excluir arquivos e pastas.



Teste Interativo

Noções básicas de Python:como encontrar e corrigir bugs de código


Erros lógicos ocorrem quando um programa válido não faz o que foi planejado. Eles causam comportamentos inesperados chamados bugs. A remoção de bugs é chamada de depuração, e um depurador é uma ferramenta que ajuda você a localizar bugs e entender por que eles estão acontecendo.



Teste Interativo

Noções básicas de Python:funções e loops


Functions break code into smaller chunks and are great for defining actions that a program will execute several times throughout your code. Instead of writing the same code each time the program needs to perform the same task, just call the function!



Interactive Quiz

Python Basics:Installing Packages With pip


Even though Python is famous for coming with batteries included, you'll still find yourself in need of a third-party library from time to time. You can install such packages with pip.



Interactive Quiz

Python Basics:Lists and Tuples


Test your knowledge of Python lists and tuples, including creating, indexing, slicing, mutability, and nesting.



Interactive Quiz

Python Basics:Modules and Packages


You can build an application by putting related code into separate files called modules. Then, you can use the import statement to use modules in another file.



Interactive Quiz

Python Basics:Numbers and Math


You don't need to be a math whiz to program well, but numbers are an integral part of any programming language. Python is no exception.



Interactive Quiz

Python Basics:Object-Oriented Programming


OOP, or object-oriented programming, is a method of structuring a program by bundling related properties and behaviors into individual objects. In this quiz, you'll test your understanding of OOP.



Interactive Quiz

Python Basics:Reading and Writing Files


By reading and writing files, you can move data back and forth between your Python programs and external software. The CSV file format is particularly useful, as it's one of the most widely supported file formats for transferring tabular data.



Interactive Quiz

Python Basics:Scopes


To fully understand functions and loops in Python, you need to be familiar with the issue of scope, which determines where a name is visible within your program.



Interactive Quiz

Python Basics:Setting Up Python


Test your knowledge of installing Python on Windows, macOS, and Ubuntu, setting PATH, and using IDLE with this quick quiz.



Interactive Quiz

Python Basics:Strings and String Methods


Strings are a fundamental data type in Python. In simplified terms, strings are collections of text, and they show up in many contexts. For example, strings can come from user input, data read from a file, or messages sent by equipment talking over a network.



Interactive Quiz

Python Bytes


In this quiz, you'll test your understanding of Python bytes objects. By working through this quiz, you'll revisit the key concepts related to this low-level data type.







Interactive Quiz

Python Closures:Common Use Cases and Examples


In this quiz, you'll test your understanding of Python closures. Closures are a common feature in functional programming languages and are particularly popular in Python because they allow you to create function-based decorators.



Interactive Quiz

Python Code Quality:Best Practices and Tools


In this quiz, you'll test your understanding of Python code quality, tools, and best practices. By working through this quiz, you'll revisit the importance of producing high-quality Python code that's functional, readable, maintainable, efficient, and secure.



Interactive Quiz

Python Concurrency


In this quiz, you'll test your understanding of Python concurrency. You'll revisit the different forms of concurrency in Python, how to implement multi-threaded and asynchronous solutions for I/O-bound tasks, and how to achieve true parallelism for CPU-bound tasks.







Interactive Quiz

Python Decorators 101


Work through this quiz to review first-class functions, inner functions, and decorators, and learn how to use them to extend behavior cleanly in Python.



Interactive Quiz

Python Descriptors:An Introduction


Learn how Python descriptors control attribute access, use special methods for getting and setting values, and implement read-only attributes.



Interactive Quiz

Python Dictionary Comprehensions:How and When to Use Them


In this quiz, you'll test your understanding of Python dictionary comprehensions. Dictionary comprehensions are a concise and quick way to create, transform, and filter dictionaries in Python, and can significantly enhance your code's conciseness and readability.



Interactive Quiz

Python Dictionary Iteration


Dictionaries are one of the most important and useful data structures in Python. Learning how to iterate through a Dictionary can help you solve a wide variety of programming problems in an efficient way. Test your understanding on how you can use them better!



Interactive Quiz

Python Exceptions:An Introduction


In this quiz, you'll test your understanding of Python exceptions. You'll cover the difference between syntax errors and exceptions and learn how to raise exceptions, make assertions, and use the try and except block.



Interactive Quiz

Python Folium:Create Web Maps From Your Data


Python’s Folium library gives you access to the mapping strengths of the Leaflet JavaScript library through a Python API. It allows you to create interactive geographic visualizations that you can share as a website.



Interactive Quiz

Python for Loops:The Pythonic Way


In this quiz, you'll test your understanding of Python's for loop. You'll revisit how to iterate over items in a data collection, how to use range() for a predefined number of iterations, and how to use enumerate() for index-based iteration.



Interactive Quiz

Python GUI Programming With Tkinter


In this quiz, you'll test your understanding of Python GUI Programming With Tkinter, the de facto Python GUI framework. Check your knowledge of GUI programming concepts such as widgets, geometry managers, and event handlers.



Interactive Quiz

Python import:Advanced Techniques and Tips


In this quiz, you'll test your understanding of Python's import statement and how it works. You'll revisit how to use modules and import them dynamically at runtime.





Interactive Quiz

Python Keywords:An Introduction


In this quiz, you'll test your understanding of Python keywords and soft keywords. These reserved words have specific functions and restrictions in Python, and understanding how to use them correctly is fundamental for building Python programs.



Interactive Quiz

Python Lambda Functions


Python lambdas are little, anonymous functions, subject to a more restrictive but more concise syntax than regular Python functions. Test your understanding on how you can use them better!





Interactive Quiz

Python Mappings


In this quiz, you'll test your understanding of the basic characteristics and operations of Python mappings. By working through this quiz, you'll revisit the key concepts and techniques of creating a custom mapping.







Interactive Quiz

Python Modules and Packages


In this quiz, you'll test your understanding of Python modules and packages, which are mechanisms that facilitate modular programming. Modular programming involves breaking a large programming task into smaller, more manageable subtasks or modules. This approach has several advantages, including simplicity, maintainability, and reusability.





Interactive Quiz

Python Name-Main Idiom


Test your knowledge of Python's if __name__ =="__main__" idiom by answering a series of questions! You've probably encountered the name-main idiom and might have even used it in your own scripts. But did you use it correctly?



Interactive Quiz

Python Namespace Packages


Practice your knowledge about namespace packages in Python. Revisit managing multiple packages without an __init__.py file.





Interactive Quiz

Python Project Management With uv


Test your skills with uv, the fast Python project manager. Practice setup, package installs, and key files created by uv.





Interactive Quiz

Python Raw Strings


In this quiz, you can practice your understanding of how to use raw string literals in Python. With this knowledge, you'll be able to write cleaner and more readable regular expressions, Windows file paths, and many other string literals that deal with escape character sequences.





Interactive Quiz

Python's Built-in Exceptions:A Walkthrough With Examples


In this quiz, you'll test your understanding of Python's built-in exceptions. With this knowledge, you'll be able to effectively identify and handle these exceptions when they appear. Additionally, you'll be more familiar with how to raise some of these exceptions in your code.



Interactive Quiz

Python's Built-in Functions:A Complete Exploration


Take this quiz to test your knowledge about the available built-in functions in Python. By taking this quiz, you'll deepen your understanding of how to use these functions and the common programming problems they cover, from mathematical computations to Python-specific features.



Interactive Quiz

Python's Bytearray


In this quiz, you'll test your understanding of Python's bytearray data type. By working through this quiz, you'll revisit the key concepts and uses of bytearray in Python.





Interactive Quiz

Python's enumerate()


Once you learn about for loops in Python, you know that using an index to access items in a sequence isn't very Pythonic. So what do you do when you need that index value? In this tutorial, you'll learn all about Python's built-in enumerate(), where it's used, and how you can emulate its behavior.



Interactive Quiz

Python Sequences:A Comprehensive Guide


In this quiz, you'll test your understanding of sequences in Python. You'll revisit the basic characteristics of a sequence, operations common to most sequences, special methods associated with sequences, and how to create user-defined mutable and immutable sequences.



Interactive Quiz

Python Set Comprehensions:How and When to Use Them


In this quiz, you'll test your understanding of Python set comprehensions. Set comprehensions are a concise and quick way to create, transform, and filter sets in Python. They can significantly enhance your code's conciseness and readability compared to using regular for loops to process your sets.



Interactive Quiz

Python Sets


In this quiz, you'll assess your understanding of Python's built-in set data type. You'll revisit the definition of unordered, unique, hashable collections, how to create and initialize sets, and key set operations.





Interactive Quiz

Python's Instance, Class, and Static Methods Demystified


In this quiz, you'll test your understanding of instance, class, and static methods in Python. By working through this quiz, you'll revisit the differences between these methods and how to use them effectively in your Python code.



Interactive Quiz

Python Skill Test


Test your Python knowledge in a skills quiz with basic to advanced questions. Are you a Novice, Intermediate, Proficient, or Expert?









Interactive Quiz

Python's property():Add Managed Attributes to Your Classes


In this quiz, you'll test your understanding of Python's property(). With this knowledge, you'll be able to create managed attributes in your classes, perform lazy attribute evaluation, provide computed attributes, and more.



Interactive Quiz

Python's raise:Effectively Raising Exceptions in Your Code


In this quiz, you'll test your understanding of how to raise exceptions in Python using the raise statement. This knowledge will help you handle errors and exceptional situations in your code, leading to more robust programs and higher-quality code.



Interactive Quiz

Python's Requests Library


Test your understanding of the Python Requests library for making HTTP requests and interacting with web services.





Interactive Quiz

Python String Formatting:Available Tools and Their Features


You can take this quiz to test your understanding of the available tools for string formatting in Python, as well as their strengths and weaknesses. These tools include f-strings, the .format() method, and the modulo operator.



Interactive Quiz

Python Strings and Character Data


This quiz will test your understanding of Python's string data type and your knowledge about manipulating textual data with string objects. You'll cover the basics of creating strings using literals and the str() function, applying string methods, using operators and built-in functions, and more!



Interactive Quiz

Python String Splitting


Practice Python string splitting, from whitespace handling to using custom separators and regex. Review split(), rsplit(), and edge cases.





Interactive Quiz

Python's unittest:Writing Unit Tests for Your Code


In this quiz, you'll test your understanding of Python testing with the unittest framework from the standard library. With this knowledge, you'll be able to create basic tests, execute them, and find bugs before your users do.



Interactive Quiz

Python Textual:Build Beautiful UIs in the Terminal


In this quiz, you'll test your understanding of the Python Textual library. This library is used to create rich terminal applications and widgets. By working through this quiz, you'll reinforce your knowledge of Textual's key concepts and features.



Interactive Quiz

Python Threading


This is a quiz that will review topics covered in our An Intro To Threading tutorial.



Interactive Quiz

Python Thread Safety:Using a Lock and Other Techniques


In this quiz, you'll test your understanding of Python thread safety. You'll revisit the concepts of race conditions, locks, and other synchronization primitives in the threading module. By working through this quiz, you'll reinforce your knowledge about how to make your Python code thread-safe.



Interactive Quiz

Python time.sleep()


In this quiz, you'll revisit how to add time delays to your Python programs.



Interactive Quiz

Python Type Checking


In this quiz, you'll test your understanding of Python type checking. You'll revisit concepts such as type annotations, type hints, adding static types to code, running a static type checker, and enforcing types at runtime. This knowledge will help you develop your code more efficiently.



Interactive Quiz

Python Virtual Environments:A Primer


In this quiz, you'll test your understanding of Python virtual environments. With this knowledge, you'll be able to avoid dependency conflicts and help other developers reproduce your development environment.



Interactive Quiz

Python while Loops:Repeating Tasks Conditionally


In this quiz, you'll test your understanding of Python's while loop. This loop allows you to execute a block of code repeatedly as long as a given condition remains true. Understanding how to use while loops effectively is a crucial skill for any Python developer.



Interactive Quiz

Quantum Computing Basics With Qiskit


Test your understanding of quantum computing basics, including superposition, qubits, entanglement, and key programming concepts.







Interactive Quiz

Reading and Writing WAV Files in Python


In this quiz, you can test your knowledge of handling WAV audio files in Python with the wave module. By applying what you've learned, you'll demonstrate your ability to synthesize sounds, analyze and visualize waveforms, create dynamic spectrograms, and enhance audio with special effects.





Interactive Quiz

Recursion in Python:An Introduction


Test your understanding of recursion in Python, including base cases, recursive structure, performance considerations, and common use cases.





Interactive Quiz

Ruff:A Modern Python Linter


In this quiz, you'll test your understanding of Ruff, a modern linter for Python. By working through this quiz, you'll revisit why you'd want to use Ruff to check your Python code and how it automatically fixes errors, formats your code, and provides optional configurations to enhance your linting.



Interactive Quiz

Shallow vs Deep Copying of Python Objects


In this quiz, you'll test your understanding of Python's copy module, which provides tools for creating shallow and deep copies of objects. This knowledge is crucial for managing complex, mutable data structures safely and effectively.



Interactive Quiz

Single and Double Underscores in Python Names


In this quiz, you'll test your understanding of the use of single and double underscores in Python names. This knowledge will help you differentiate between public and non-public names, avoid name clashes, and write code that looks Pythonic and consistent.





Interactive Quiz

Socket Programming in Python


In this quiz, you'll test your understanding of Python sockets. With this knowledge, you'll be able to create your own client-server applications, handle multiple connections simultaneously, and send messages and data between endpoints.







Interactive Quiz

Speed Up Python With Concurrency


Test your Python concurrency knowledge:CPU vs I/O-bound tasks, GIL, asyncio, race conditions, and multiprocessing.









Interactive Quiz

String Interpolation in Python:Exploring Available Tools


Take this quiz to test your understanding of the available tools for string interpolation in Python, as well as their strengths and weaknesses. These tools include f-strings, the .format() method, and the modulo operator.





Interactive Quiz

Strip Characters From a Python String


Test your Python skills on removing characters from strings using strip, lstrip, and rstrip. Practice default behavior, custom chars, and more.



Interactive Quiz

Structural Pattern Matching


In this quiz, you'll test your understanding of structural pattern matching in Python. This powerful control flow construct, introduced in Python 3.10, offers concise and readable syntax while promoting a declarative code style.



Interactive Quiz

Supercharge Your Classes With Python super()


In this quiz, you'll test your understanding of inheritance and the super() function in Python. By working through this quiz, you'll revisit the concept of inheritance, multiple inheritance, and how the super() function works in both single and multiple inheritance scenarios.









Interactive Quiz

The Python calendar Module


In this quiz, you'll test your understanding of the calendar module in Python. It'll evaluate your proficiency in manipulating, customizing, and displaying calendars directly within your terminal. By working through this quiz, you'll revisit the fundamental functions and methods provided by the calendar module.



Interactive Quiz

The Python print() Function


In this interactive quiz, you can revisit what you know about Python's print() function. You'll also get to quiz yourself about some of its lesser-known features.



Interactive Quiz

The Python print() Function


In this quiz, you'll test your understanding of Python's built-in print() function, covering how to format output, specify custom separators, and more.



Interactive Quiz

The Python return Statement


In this quiz, you can practice your understanding of how to use the Python return statement when writing functions. Additionally, you'll cover some good programming practices related to the use of return. With this knowledge, you'll be able to write readable, robust, and maintainable functions in Python.



Interactive Quiz

The Python Standard REPL:Try Out Code and Ideas Quickly


Test your understanding of the Python standard REPL. The Python REPL allows you to run Python code interactively, which is useful for testing new ideas, exploring libraries, refactoring and debugging code, and trying out examples.



Interactive Quiz

The Walrus Operator:Python's Assignment Expressions


In this quiz, you'll test your understanding of Python's walrus operator. This operator was introduced in Python 3.8, and understanding it can help you write more concise and efficient code.



Interactive Quiz

Threading in Python


Test your understanding of Python threading, including how to create threads, use locks, avoid race conditions, and build pipelines.





Interactive Quiz

Understanding the Python Mock Object Library


In this quiz, you'll test your understanding of Python's unittest.mock library. With this knowledge, you'll be able to write robust tests, create mock objects, and ensure your code is reliable and efficient.





Interactive Quiz

Using and Creating Global Variables in Your Python Functions


In this quiz, you'll test your understanding of how to use global variables in Python functions. With this knowledge, you'll be able to share data across an entire program, modify and create global variables within functions, and understand when to avoid using global variables.



Interactive Quiz

Using Data Classes in Python


Test your knowledge of Python data classes, namedtuple, immutability, auto-generated methods, inheritance, and slots.



Interactive Quiz

Using Dictionaries in Python


Revisit Python's dictionary data type in this quick quiz. How does it work, why is it useful, and how is it different from a list?



Interactive Quiz

Using Jupyter Notebooks


Test your Jupyter Notebook skills:cells, modes, shortcuts, Markdown, server tools, and exporting notebooks to HTML.







Interactive Quiz

Using Python's .__dict__ to Work With Attributes


In this quiz, you'll test your understanding of Python's .__dict__ attribute and its usage in classes, instances, and functions. Acting as a namespace, this attribute maps attribute names to their corresponding values and serves as a versatile tool for metaprogramming and debugging.





Interactive Quiz

Using .__repr__() vs .__str__() in Python


In this quiz, you'll test your understanding of Python's dunder repr and dunder str special methods. These methods allow you to control how a program displays an object, making your classes more readable and easier to debug and maintain.













Interactive Quiz

Web Automation With Python and Selenium


In this quiz, you'll test your understanding of using Selenium with Python for web automation. You'll revisit concepts like launching browsers, interacting with web elements, handling dynamic content, and implementing the Page Object Model (POM) design pattern.



Interactive Quiz

Web Scraping With Scrapy and MongoDB


In this quiz, you'll test your understanding of web scraping with Scrapy and MongoDB. You'll revisit how to set up a Scrapy project, build a functional web scraper, extract data from websites, store scraped data in MongoDB, and test and debug your Scrapy web scraper.



Interactive Quiz

Welcome to Real Python!


Get a tour of Real Python, find resources for your skill level, and learn how to use the community to study effectively.



Interactive Quiz

What Are CRUD Operations?


In this quiz, you'll revisit the key concepts and techniques related to CRUD operations. These operations are fundamental to any system that interacts with a database, and understanding them is crucial for effective data management.



Interactive Quiz

What Are Mixin Classes in Python?


Test your knowledge of Python mixins—specialized classes that let you reuse methods without traditional inheritance.



Interactive Quiz

What Can I Do With Python?


Test your knowledge of what Python can and can't do, from web and GUI apps to data science, CLI tools, and embedded systems.



Interactive Quiz

What Can You Do With Python?


Review where Python shines:web, APIs, CLIs, GUIs, data science, ORMs, automation, and robots. Practice key terms, tools, and workflows.





Interactive Quiz

What Exactly Is the Zen of Python?


Learn and test the Zen of Python, its guiding aphorisms, and tips for writing clearer, more readable, and maintainable code.



Interactive Quiz

What Is Python's __init__.py For?


Test your understanding of Python's __init__.py files to master how they shape your packages, enhance project structure, and keep your code clean.



Interactive Quiz

What Is the __pycache__ Folder in Python?


In this quiz, you'll have the opportunity to test your knowledge of the __pycache__ folder, including when, where, and why Python creates these folders.





Interactive Quiz

What's Lazy Evaluation in Python?


In this quiz, you'll test your understanding of the differences between lazy and eager evaluation in Python. By working through this quiz, you'll revisit how Python optimizes memory use and computational overhead by deciding when to compute values.



Interactive Quiz

When to Use a List Comprehension in Python


In this quiz, you'll test your understanding of Python list comprehensions. You'll revisit how to rewrite loops as list comprehensions, how to choose between comprehensions and loops, and how to use conditional logic in your comprehensions.



Interactive Quiz

Working With Files in Python


Practice handling files and directories in Python, including opening, iterating, filtering, creating, deleting, copying, and renaming.



Interactive Quiz

Working With JSON Data in Python


In this quiz, you'll test your understanding of working with JSON in Python. By working through this quiz, you'll revisit key concepts related to JSON data manipulation and handling in Python.













Got feedback on our quizzes?

python

  1. Manipulação de exceção do Python:tente, pegue, finalmente e aumente [Exemplo]
  2. 5 técnicas especializadas para reverter strings em Python
  3. Variáveis, constantes e literais do Python
  4. type() e isinstance() em Python com exemplos
  5. Tipos de dados Python
  6. Funções do Python Lambda com EXEMPLOS
  7. Tutorial PyTest:O que é, como instalar, estrutura, asserções
  8. Desenvolvam habilidades em Python juntos:cursos ao vivo baseados em coorte
  9. Função Python map() com EXEMPLOS
  10. Domine a execução de scripts Python:um guia passo a passo abrangente