Python Tutorial 3: Getting User Input from Keyboard

preview_player
Показать описание
You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

In this video we show step-by-step instructions on how to get input from a user on the keyboard using python. We do not assume you are an expert, so these lessons are designed for complete beginners.
#Python
#Lessons
#Programming
Рекомендации по теме
Комментарии
Автор

Paul Mcwhorter is the reason why I can code!

DLabs_TheCreator
Автор

Brand new to python here : and I can’t say how grateful I am for your videos ! Truly thank you! Keep em’ coming!

DonovanCostlow-klyo
Автор

I tried to learn Python but i got bored, Once I've seen Paul's videos I've got excited to learn it with his easy explanations, I feel i could keep up watching these pure videos forever, Thanks a lot.

Usernamelessness
Автор

Thanks for the content. I've written my first python program and I'm very excited for the upcoming lectures. I made an average calculator for 2 inputs today.

Dheeraj
Автор

I will try to keep up adding chapters/timestamps. The primary use for this is create them so I can put them on my Notion course notes for future reference but someone here might find them useful

0:00 Intro
1:03 Past Lessons Recap
2:02 Create a python file
6:06 Get input from the user
9:42 String input example
12:32 Homework

nicolas_acu
Автор

I enjoyed the twist in the lesson definitely a great way to make it stick int o my memory.

danbishop
Автор

God Bless you Paul McWhorter. These videos you do are life changing for me. I appreciate everything you do.

rockymountainfacet
Автор

cannot be anywhere of the world such a teacher like you. thanks for every step of your teaching.

silentevidence
Автор

Ok, I have to admit I had a beginning Python course a million years ago and the rust started to slowly chip away from the memory files....remembered there was a trick on changing strings to integers--seriously had to look it up, though! I'm going through your Arduino class, too, and thoroughly enjoy both! Planning on the Raspberry Pi class, afterwards. Wish I would have had someone like you teaching me back in the 80's, but, at least I'm plugging away at it now--never too late, right?

AMaupin
Автор

So basically I combined lesson 2 and 3 for this homework. Gotta say it was pretty satisfying. Here's the code :

x=[ ]
y=input('Please enter your first number: ')
z=input('Please enter your second number: ')
x.append(y)
x.append(z)
Ans=int(x[0])+int(x[1])
print('The sum of the entered numbers is = ', Ans)

hassanniaz
Автор

Great Lesson and yes, I did the homework for the next lesson, I am so glad you enforce good punctuation because not doing so makes things look unprofessional when it comes to print statements. If my students go on to create programs and then try to market those programs, no one will take them seriously if their work looks sloppy. Not using good punctuation also leads to the development of bad habits. As I tell my students, "it is much easier to develop a good habit than it is to break a bad habit." Thanks for another great lesson that will be passed on to my students!

hughpatterson
Автор

I love your videos Paul! As a newbie programmer, your approach and your style is very beginner friendly and VERY enjoyable to watch. I wouldn’t mind listening to you for hours! Thanks for the great content!

DingoWingoBeep
Автор

Thank you Paul... I’m still learning at 72. My Arduino robot car is running fine, but this Python programming is much easier! Boom!

roberttomlinson
Автор

Homework done. Got slipped up there for a bit until I understood how “input” works. Now it’s perfect!

bryankohn
Автор

Python automatically adds a space between each of the elements separated by commas in the print() statement. To get it to print correctly you can concatenate (glue together two strings) name + the string ', ' and that will put the comma in the second string immediately one character position to the right of the name variable which is the first string making a new combined string that then gets output to the screen in the print statement. The full statement to print correctly will be: print('Hello', name+', ', 'Welcome to Python Land')

pd
Автор

Outstanding lesson, as expected Paul. I did the homework and, I have to admit, I had to think back to your Arduino lessons and consider variable types to complete this assignment. It took a little trial and error but I figured it out. Thanks again!

charlielowell
Автор

Ok, I'm a little proud of figuring out how to add operators to the question to get it to prompt and then use if else statements. Thanks Paul!

ben_shoots_
Автор

I got the homework done Paul, Kuddos ! 👍👍

sibinkuttan
Автор

Thanks Paul, I did the Homework and it took me a while to figure out how to add the numbers instead of concatenating them but it all works fine now.

alfredcalleja
Автор

You are the best! Boom! did the homework by myself, I'm so happy :) Thank you, Paul!!

scurrita
visit shbcf.ru