RUVIDEO
Поделитесь видео 🙏

Module 1 Required Code Description - Introduction to Python: Absolute Beginner Module 1 Video 24

📁 Обучение 👁️ 18 📅 02.12.2023

Module 1 Required Coding Activity
Introduction to Python Unit 1

This Activity is intended to be completed in the jupyter notebook, Required_Code_MOD1_IntroPy.ipynb, and then pasted into the assessment page that follows.

All course .ipynb Jupyter Notebooks are available from the project files download topic in Module 1, Section 1.

This is an activity from the Jupyter Notebook Practice_MOD01_1-2_IntroPy.ipynb which you may have already completed.

Assignment Requirements
NOTE: This program requires print output and using code syntax used in module 1 such as variable assignment, input, in keyword, .lower() or .upper() method
Program: Allergy Check
[ ] get user input for categories of food eaten in the last 24 hours
save in a variable called input_test
example input 01 02 practice Allergy-input

[ ] print True if "dairy" is in the input_test string
[ ] Test the code so far


[ ] modify the print statement to output similar to below
example output 01 02 Allergy output
Test the code so far trying input including the string "dairy" and without


[ ] repeat the process checking the input for "nuts", challenge add "Seafood" and "chocolate"
[ ] Test your code


[ ] challenge: make your code work for input regardless of case, e.g. - print True for "Nuts", "NuTs", "NUTS" or "nuts"

# Create Allergy check code
# then PASTE THIS CODE into edX

# [ ] get input for input_test variable


# [ ] print "True" message if "dairy" is in the input or False message if not


# [ ] print True message if "nuts" is in the input or False if not


# [ ] Challenge: Check if "seafood" is in the input - print message


# [ ] Challenge: Check if "chocolate" is in the input - print message
Important: How to submit code by pasting

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Module 1 Required Code Description - Introduction to Python: Absolute Beginner Module 1 Video 24», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.