Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Organizing Lab Results | Python Foundations for Chemists
Python for Chemists

bookChallenge: Organizing Lab Results

Taak

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.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 5
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

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

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 5
single

single

some-alt