Lesson 12 - If Elif Else Statement in Python (Part-3) | Python Tutorial for Beginners смотреть онлайн
Python Tutorial for Beginners | learn python - full course for beginners windows 10
Welcome to lesson 12 and this is a continuation of lessons 10 and 11. In the last two lessons, we only used conditional statements with integers but in this lesson, I will show you how to use them with strings, lists and inside for loops.
----
Lesson 12 Exercises
1. movies = ['harry potter', 'king kong', 'jaws', 'batman', 'terminator']
Use the list shown above and create a for loop with conditional statements in it. You will need to treat each movie name differently by using conditional statements. Follow 'a' through 'f ' to complete this exercise:
a. Your code needs to change 'harry potter' to 'harry potter 3', capitalize the first letters and print it. It should only print the modified value without changing the value in the list.
b. Your code needs to print 'jaws' in all uppercase letters.
c. Your code needs to change 'batman' to 'batman and robin', capitalize the first letters and print it. It should only print the modified value without changing the value in the list.
d. Everting else need to be printed with first letters changed to uppercase.
e. Create a separate if statement which checks if 'terminator' is present in the list, remove it from the list.
f. Create a separate if statement which checks if 'robocop' is NOT present in the list, and if it is NOT present, it should add it to the list.
Answers for Lesson 11 Exercises
Unfortunately You Tube didn't allow me to put greater than or less than symbols in the video description so I wasn't able to include the Lesson-10 exercise answers here. I will see how I can work around this.
-----
Song: Valence - Infinite [NCS Release]
Music provided by NoCopyrightSounds
Free Download/Stream: http://ncs.io/infinite
Watch: http://youtu.be/QHoqD47gQG8
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Lesson 12 - If Elif Else Statement in Python (Part-3) | Python Tutorial for Beginners» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.