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

Intro to Python — Lesson 6 смотреть онлайн

In this session we cover:
- Tuples/Sets
- Dictionaries
- Nested Collections

Next Lesson: https://youtu.be/LX7xBp9yk40
Previous Lesson: https://youtu.be/ydjVCpCBt_A
Playlist for whole course: https://www.youtube.com/playlist?list=PLKDX-K07YbypJwG5BYv0doMrU44IYqa1X
Course Material: https://github.com/ihf-code/python

Questions:
Section A
1. Create the following dictionary for an apple: Type = "Bramley", Price = 0.39, Colour = "Green".
2. Add the best before date to the dictionary - print the dictionary.
3. Change the price to 0.41 - print the dictionary.
4. Set the apple to be on offer using a Boolean - print the dictionary.
5. The offer has now expired, remove the key/value from the dictionary - print the dictionary.

Section B
1. Ask the user to enter a persons name, if they enter a name, ask for the persons age. Store this information in a dictionary inside a list. Continue to ask for names until no name is given. Then print out all of the names and ages collected.
2. Create a restaurants menu with 5 items. Store this information in a dictionary inside a list. Each item in the menu should have the name of the item, the price and if it's vegetarian friendly (make at least one vegetarian friendly dish). Print out the entire menu. Print out the name of the vegetarian option(s).
3. The beetle game is a dice game where depending on what you roll is how much of the beetle you can draw.
If you roll a 6, you can draw the body
If you roll a 5, you can draw the head
If you roll a 4, you can draw the legs (but remember, you cannot draw legs without a body)
If you roll a 3, you can draw the antenna (but remember, you cannot draw antenna without a head)
If you roll a 2, you can draw the eyes (but remember, you cannot draw eyes without a head)
If you roll a 1, you can draw the mouth (but remember, you cannot draw a mouth without a head)
You need 6 legs, 2 antenna, 2 eyes, 1 mouth.
The player to complete the beetle in the fewest rolls of the dice wins. Create the beetle game.

Answers:
Answers to these questions available: https://youtu.be/H25_O49i7_Q

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Intro to Python — Lesson 6» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

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

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

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