Challenge: Organizing Lab Results
Завдання
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_nameslist and each value is the corresponding pH from thepH_valueslist. - If the
query_sampleexists in the dictionary, retrieve its pH value; otherwise, returnNonefor the pH. - Return both the dictionary and the retrieved pH value.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 5
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 5.26
Challenge: Organizing Lab Results
Свайпніть щоб показати меню
Завдання
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_nameslist and each value is the corresponding pH from thepH_valueslist. - If the
query_sampleexists in the dictionary, retrieve its pH value; otherwise, returnNonefor the pH. - Return both the dictionary and the retrieved pH value.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 5
single