Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть (Python)Obtaining user input in python

  • Techno_Coder
  • 2021-10-02
  • 1309
(Python)Obtaining user input in python
  • ok logo

Скачать (Python)Obtaining user input in python бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно (Python)Obtaining user input in python или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку (Python)Obtaining user input in python бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео (Python)Obtaining user input in python

,Python tutorial
,Python practical Exercise
,Practical Assignment 1
Obtaining user input in python
In this YouTube video, the instructor demonstrates a practical assignment in Python. The assignment requires the user to enter two numbers and then display the values of the variables and the total. The instructor opens a Python file and explains how to create variables for the user inputs. The code then calculates the total by adding the two numbers together and prints the result.

The instructor also shows how to navigate to a specific folder in the command prompt and open the Python file from there. However, there is an error in the code because the user inputs are treated as strings instead of integers. To fix this, the instructor explains that the variables need to be converted from strings to integers using the `int()` function. The instructor demonstrates the corrected code and runs the program again to show the desired result.

Finally, the instructor adds a line of code to display the result as a string by converting the total variable from an integer to a string using the `str()` function. The instructor runs the program one more time to show the final output, where the total is displayed as an integer value.

Overall, the video provides a step-by-step explanation of the assignment, demonstrates how to write the code, and highlights the importance of data type conversion for proper calculations and output.

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]