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

Скачать или смотреть Python Programming - Basic Input and Output - print and input functions

  • Appficial
  • 2021-08-12
  • 40895
Python Programming - Basic Input and Output - print and input functions
  • ok logo

Скачать Python Programming - Basic Input and Output - print and input functions бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Python Programming - Basic Input and Output - print and input functions или посмотреть видео с ютуба в максимальном доступном качестве.

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

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

Cкачать музыку Python Programming - Basic Input and Output - print and input functions бесплатно в формате MP3:

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

Описание к видео Python Programming - Basic Input and Output - print and input functions

To print output to the screen, use the print() function. Ex: print('hello world’).

The text ‘hello world’ is called a string literal. A string literal may contain any characters such as letters, numbers or symbols such as $ or #. In python, you can use either single or double quotes to surround a string literal. print(‘hello world’) and print(“hello world”) both print the text hello world to the screen. If text represents numbers such as 187, or 11.99, then there are no quotes around the numbers. A string ‘187’ is different than a number 187 in Python. 187 represents the number 187, while string ‘187’ is a character sequence ‘1’, ‘8’ and ‘7’.

If you need to print out a combination of string literals and variables, separate each item with a comma. Ex:

age = 20
print(‘Your are’, age, ‘years old.’) # Comma separates multiple items with a space
print(‘Have a nice day!’)

Outputs:

You are 20 years old.
Have a nice day!

Calling the print() function outputs on a new line. If you want to keep output on the same line., then add end=' ' inside of print() to separate the next line by a single space. Ex: print('Hello', end=' ‘).

You can print out the newline character ‘\n’ whenever you need to output a new line. Ex: print(‘A\nB\nC’) outputs:

A
B
C

A whitespace refers to any space, tab, or newline in your program. Whitespace matters in Python, as you will see soon as you learn more python.

Programs may allow a user to enter input values, such as a number or string. In python, you can read input using the input() function. Ex: name = input() will set the variable name to the text entered by the user.

Any data read by the input() function is read in as a string, so if you wanted to convert string ‘187’ to the interger 187, then use the int() function. Ex: some_int = int(‘187’)

Subscribe to APPFICIAL for more programming videos coming soon. Also be sure to click LIKE and comment on the video!

Комментарии

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

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

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

video2dn Copyright © 2023 - 2025

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