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

3.4. Roman Numerals - Python

Hello Everyone, hope you're all doing well. Ultimately a much more efficient way of solving this program will be to use a loop to go through a file, sequence structure, database etc containing the roman numerals, checking it against the user's input to find a match or not. We did not use a loop in this question because, as you may already be aware, we're solving questions from the book, Starting out with Python by Tony Gaddis and solving questions based on what we've learnt all the way up to the chapter we're currently on.

This program is a programming challenge at the end of chapter 3 and chapter 3 covers decision structures/if statements etc. Loops are covered in chapter 4 and that's why, loops were used in the chapter 4 programming challenges here, https://www.youtube.com/playlist?list=PLGFLoZ9w5xCMCvDnylUHIG16hkt90F0sc

As we progress through the chapters, we learn more concepts and can use what we've learnt up to that current chapter to solve the programming challenges related to what we've learnt. We're limited to the things we've learnt up to the current chapter and that's why I used if statements.

Hope this explains why I used if statements. Take care and please let me know if you have any questions ok ? Much love ?

Starting out with Python, Third Edition, Tony Gaddis
Chapter 3
Programming Challenges

4. Roman Numerals

Write a program that prompts the user to enter a number within the range of 1 through 10. The program should display the Roman numeral version of that number. If the number is outside the range of 1 through 10, the program should display an error message. The following table shows the Roman numerals for the numbers 1 through 10:

Number - Roman Numeral
1 -------------------- I
2 -------------------- II
3 -------------------- III
4 -------------------- IV
5 -------------------- V
6 -------------------- VI
7 -------------------- VII
8 -------------------- VIII
9 -------------------- X
10 ------------------ X

Starting out with Python. Third Edition. Tony Gaddis.

Thanks ?

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

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

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

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