Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Organizing Lab Results | Python Foundations for Chemists
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Chemists

bookChallenge: Organizing Lab Results

Tarefa

Swipe to start coding

Organizing and retrieving lab results is a key part of data analysis in chemistry. In this challenge, you will use lists and dictionaries to map sample names to their pH values and retrieve the pH for a specific sample.

  • Create a dictionary where each key is a sample name from the sample_names list and each value is the corresponding pH from the pH_values list.
  • If the query_sample exists in the dictionary, retrieve its pH value; otherwise, return None for the pH.
  • Return both the dictionary and the retrieved pH value.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 5
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

Can you explain this in simpler terms?

What are some examples related to this topic?

Where can I learn more about this?

close

bookChallenge: Organizing Lab Results

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Organizing and retrieving lab results is a key part of data analysis in chemistry. In this challenge, you will use lists and dictionaries to map sample names to their pH values and retrieve the pH for a specific sample.

  • Create a dictionary where each key is a sample name from the sample_names list and each value is the corresponding pH from the pH_values list.
  • If the query_sample exists in the dictionary, retrieve its pH value; otherwise, return None for the pH.
  • Return both the dictionary and the retrieved pH value.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 5
single

single

some-alt