5 Ввод и вывод данных python. Команда input()

Share this & earn $10
egoroff_channel
Published at : 09 Dec 2020
132347 views
3599
49

https://stepik.org/course/63085/promo
Записывайся на мой курс на Stepic, где найдешь много практических задач

Стать спонсором канала и получить доступ к дополнительным материалам по Python
https://www.youtube.com/channel/UCMcC_43zGHttf9bY-xJOTwA/join
https://boosty.to/egoroff_channel
https://www.patreon.com/artem_egorov

http://egoroffartem.pythonanywhere.com/course/python/funktsiya-input
Подробная информация об этом уроке

Python ввод и вывод данных

В видео рассказывается как использовать функцию input() для ввода значений с клавиатуры и дальнейшего их сохранения в переменные.

a = input() ввод строки и дальнейшее сохранение ее в переменной a

d = int(input()) ввод целого числа и дальнейшее сохранение его в переменной d

f = float(input()) ввод вещественного числа и дальнейшее сохранение его в переменной f

Список задач для самостоятельного решения:

1) Бисер
http://acmp.ru/asp/do/index.asp?main=task&id_course=1&id_section=1&id_topic=26&id_problem=144

2) Журавлики
http://acmp.ru/asp/do/index.asp?main=task&id_course=1&id_section=1&id_topic=28&id_problem=150

3) Гипотенуза
https://informatics.msk.ru/mod/statements/view3.php?id=2296&chapterid=2936

4) Магазин канцелярских товаров (значения нужно вводить через map(int,input().split()) )
http://acmp.ru/asp/do/index.asp?main=task&id_course=1&id_section=1&id_topic=28&id_problem=148

5) Обмен значений
https://informatics.msk.ru/mod/statements/view3.php?id=2296&chapterid=2949


6) Эния (значения нужно вводить через map(int,input().split()) )
http://acmp.ru/asp/do/index.asp?main=task&id_course=1&id_section=1&id_topic=26&id_problem=145

7) Разность времен
https://informatics.msk.ru/mod/statements/view3.php?id=2296&chapterid=2952

8) Два бандита (значения нужно вводить через map(int,input().split()) )
http://acmp.ru/asp/do/index.asp?main=task&id_course=1&id_section=1&id_topic=26&id_problem=146

9) Шнурки
https://informatics.msk.ru/mod/statements/view3.php?id=3309&chapterid=3466

10) Выражение
http://codeforces.com/problemset/problem/479/A

Все видео этого курса можете найти на сайте
http://egoroffartem.pythonanywhere.com/course/python

или в Вк
https://vk.com/videos-177962775?section=album_1

Если кому нужна помощь, предлагаю индивидуальные занятия. Подробнее пишите в личку в вк
https://vk.com/artem_egoroff

https://vk.com/python.study
В данном группе можете найти информацию о новых видео и задать вопросы

Данный курс предназначен для новичков (начинающих) в программировании.

Курс подойдет для тех, кто хочет изучить язык Python с нуля.

Также курс идеально подойдет школьникам, которые готовятся к сдаче ЕГЭ по информатике или ОГЭ по информатике.
pythonpython для начинающихpython уроки

All or Nothing (Instrumental)

All or Nothing (Instrumental)

The Brilliant Use Of Complementary Colors In The Queen's Gambit

The Brilliant Use Of Complementary Colors In The Queen's Gambit

The Girl From Ipanema (Play-Along)

The Girl From Ipanema (Play-Along)

15 Unimaginable Moments You Wouldn’t Believe if They Weren’t Recorded

15 Unimaginable Moments You Wouldn’t Believe if They Weren’t Recorded

Mind - Its Majesty and Magnificence: Part 4 of 5

Mind - Its Majesty and Magnificence: Part 4 of 5

Minecraft But The World IS ONLY ONE BLOCK!

Minecraft But The World IS ONLY ONE BLOCK!

The Scholars - Escape Plan (Official Video)

The Scholars - Escape Plan (Official Video)

Just playing a short while

Just playing a short while

Prayer for the Protection and Safety of Children | Prayer for Kids | Family Prayers

Prayer for the Protection and Safety of Children | Prayer for Kids | Family Prayers

Write an Informal letter to your mother/Informal letter writing in English/Master handwriting

Write an Informal letter to your mother/Informal letter writing in English/Master handwriting

Frankie Lymon's Teenagers talk with Tom Meros

Frankie Lymon's Teenagers talk with Tom Meros

John Farnham - Seemed Like A Good Idea LIVE

John Farnham - Seemed Like A Good Idea LIVE

How To Grill Your Garage

How To Grill Your Garage

BigKayBeezy "Touchdown" (Official Audio)

BigKayBeezy "Touchdown" (Official Audio)

Find a phone in the packaging box trash | Phone restoration from trash

Find a phone in the packaging box trash | Phone restoration from trash

Heavy and Light | Comparison for Kids | Learn Pre-School Concepts with Siya | Part 2

Heavy and Light | Comparison for Kids | Learn Pre-School Concepts with Siya | Part 2

Let's Play Advance Wars - Mission #5M (2/2) A Carefully Planned Victory

Let's Play Advance Wars - Mission #5M (2/2) A Carefully Planned Victory

Cómo dibujar a "L" Lawliet de "Death Note´s" | How to draw L Lawliet

Cómo dibujar a "L" Lawliet de "Death Note´s" | How to draw L Lawliet

What credit score do I need to buy a house / mortgage? (FICO Scores for Standard & FHA Home Loans)

What credit score do I need to buy a house / mortgage? (FICO Scores for Standard & FHA Home Loans)

Business Is Booming for the Italian Mafia During COVID

Business Is Booming for the Italian Mafia During COVID

How simple ideas lead to scientific discoveries

How simple ideas lead to scientific discoveries

TARGET * NEW CLOTHING STORE WALKTHROUGH * SHOP WITH ME 2019

TARGET * NEW CLOTHING STORE WALKTHROUGH * SHOP WITH ME 2019

The Adaptation - Here Comes the Change

The Adaptation - Here Comes the Change

The Package | Official Trailer #2 [HD] | Netflix

The Package | Official Trailer #2 [HD] | Netflix

THE ONLY DRILL YOU NEED TO PERFECT THE RELEASE

THE ONLY DRILL YOU NEED TO PERFECT THE RELEASE

PNB118 Kuala Lumpur -  Stunning Night Views of KL City

PNB118 Kuala Lumpur - Stunning Night Views of KL City

Back Cyst Volcano - Pepe REMIX - Popping, Pimples & Zits

Back Cyst Volcano - Pepe REMIX - Popping, Pimples & Zits

Electronic message

Electronic message

Survivors Being Wholesome and Definitely not Entitled - Dead By Daylight Myers Gameplay

Survivors Being Wholesome and Definitely not Entitled - Dead By Daylight Myers Gameplay

Diva Pups | 101 Dalmatian Street | Disney Channel Africa

Diva Pups | 101 Dalmatian Street | Disney Channel Africa

Bong Joon Ho Explains the Marvels of ‘Parasite,’ Which Could Be an Oscar Winner

Bong Joon Ho Explains the Marvels of ‘Parasite,’ Which Could Be an Oscar Winner

One Hour Audio "Caution" (6o)

One Hour Audio "Caution" (6o)

Select Focsani - Au, Au, Inima Mea (2015)

Select Focsani - Au, Au, Inima Mea (2015)

"A" Letter Whatsapp Status Video || "A" Letter Whatsapp Status Video

"A" Letter Whatsapp Status Video || "A" Letter Whatsapp Status Video

Entourage - Is that something you might be interested in?

Entourage - Is that something you might be interested in?

ON THIS DAY by David Pomeranz with lyrics

ON THIS DAY by David Pomeranz with lyrics

The Tallest Man On Earth - Forever Is a Very Long Time - CARDINAL SESSIONS

The Tallest Man On Earth - Forever Is a Very Long Time - CARDINAL SESSIONS

Claude Debussy - Nocturnes

Claude Debussy - Nocturnes

SBI PO | Important Topics for Prelims | SBI PO Prelims | SBI PO Mains | Oliveboard

SBI PO | Important Topics for Prelims | SBI PO Prelims | SBI PO Mains | Oliveboard

Psyko Punkz - Feel the Rhythm (Alpha² RMX) / Lets Get ill - Official Videoclip

Psyko Punkz - Feel the Rhythm (Alpha² RMX) / Lets Get ill - Official Videoclip

The Most Important Gift | SPIRIT RIDING ACADEMY

The Most Important Gift | SPIRIT RIDING ACADEMY

Once I've Gone - Adam Youngman x Annamarie Rosanio

Once I've Gone - Adam Youngman x Annamarie Rosanio

Illustrate to Educate | The Origin Story | How Illustrate to Educate got started

Illustrate to Educate | The Origin Story | How Illustrate to Educate got started

Brad Pitt is rebuilding his life after divorce Angelina - And embarked on regaining ex-wife Aniston

Brad Pitt is rebuilding his life after divorce Angelina - And embarked on regaining ex-wife Aniston

Harsh Times Trailer (2005)

Harsh Times Trailer (2005)

They Were Locked in a Solitary Cell Without Internet for 5 Days

They Were Locked in a Solitary Cell Without Internet for 5 Days

cam - đến bao giờ

cam - đến bao giờ

Top 5 Universities that offer free Microsoft Online Courses 2020

Top 5 Universities that offer free Microsoft Online Courses 2020

Christina Perri  !  A Thousand Years

Christina Perri ! A Thousand Years