Python Tutorial 3: Getting User Input from Keyboard

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ธ.ค. 2024
  • 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:
    / paulmcwhorter
    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

ความคิดเห็น • 198

  • @D3Labs_TheCreator
    @D3Labs_TheCreator 3 ปีที่แล้ว +57

    Paul Mcwhorter is the reason why I can code!

    • @warrenscorner
      @warrenscorner 3 ปีที่แล้ว

      Same here Dillon! I've played around with other programming languages before but never really mastered them. Is there anyone that can master Swift?

    • @anishhansoge17
      @anishhansoge17 3 ปีที่แล้ว

      Same here to!!!

    • @imaneberra3522
      @imaneberra3522 10 หลายเดือนก่อน

      Same heeeeere

  • @DonovanCostlow-kl9yo
    @DonovanCostlow-kl9yo 6 หลายเดือนก่อน +2

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

  • @Usernamelessness
    @Usernamelessness 6 หลายเดือนก่อน +3

    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.

  • @nicolasbassano3697
    @nicolasbassano3697 ปีที่แล้ว +7

    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 so.....
    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

  • @pd8559
    @pd8559 3 ปีที่แล้ว +12

    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')

  • @Dheeraj4011
    @Dheeraj4011 ปีที่แล้ว +2

    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.

  • @hassanniaz7583
    @hassanniaz7583 3 ปีที่แล้ว +3

    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)

  • @rockymountainfacet5958
    @rockymountainfacet5958 2 ปีที่แล้ว +3

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

  • @danbishop4035
    @danbishop4035 3 ปีที่แล้ว +11

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

  • @mehmetoner5224
    @mehmetoner5224 8 หลายเดือนก่อน

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

  • @AMaupin2
    @AMaupin2 3 ปีที่แล้ว +17

    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?

    • @evanherpin6980
      @evanherpin6980 2 ปีที่แล้ว

      I almost got stuck on the same thing! After each input request I changed the string input to an integer by modifying it with "x_as_integer = int(x)" for example.

    • @426F6F
      @426F6F ปีที่แล้ว

      Same here, almost forgot how to do it!

  • @alligator4465
    @alligator4465 2 ปีที่แล้ว +1

    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!

  • @roberttomlinson5351
    @roberttomlinson5351 3 ปีที่แล้ว +7

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

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว

      Great to hear!

    • @warrenscorner
      @warrenscorner 3 ปีที่แล้ว +1

      Glad I'm not the only old fart trying to learn something new. Gotta keep that brain active!

  • @abdelazizpsy
    @abdelazizpsy 8 หลายเดือนก่อน

    the fact is you're a great professor, I'm realy proud of you, thanks for everything and everythink

  • @hughpatterson1480
    @hughpatterson1480 2 ปีที่แล้ว +1

    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!

  • @Wythaneye
    @Wythaneye 3 ปีที่แล้ว

    7:54 You can disable the annoying prompt under Options -> Configure IDLE -> Shell/Ed

  • @charlielowell4077
    @charlielowell4077 2 ปีที่แล้ว +1

    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!

  • @alfredcalleja450
    @alfredcalleja450 ปีที่แล้ว

    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.

  • @bryankohn9660
    @bryankohn9660 3 ปีที่แล้ว +1

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

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +3

      Which was sort of the whole point of the lesson. Little surprise in there, huh?

    • @partsdave8943
      @partsdave8943 3 ปีที่แล้ว

      @@paulmcwhorter I was surprised as well when I first ran the code. :)

  • @ben_shoots_
    @ben_shoots_ 2 ปีที่แล้ว

    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!

  • @scurrita
    @scurrita 3 ปีที่แล้ว +1

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

  • @indecipherabl3
    @indecipherabl3 2 ปีที่แล้ว

    In reference to 12:00, I was able to remove the extra space after the comma after by formatting properly.
    n=input('Please enter your desired username: ')
    w='welcome to the Kingdom'
    print('Hello, {0}, {1}!'.format(n,w))

  • @jeffreyopoku2349
    @jeffreyopoku2349 2 ปีที่แล้ว

    Really appreciate the effort you put into these videos. So resourceful and digestible. Much appreciated.

  • @HoangVu-id2vp
    @HoangVu-id2vp 2 ปีที่แล้ว

    Thanks!

  • @aliusef2912
    @aliusef2912 ปีที่แล้ว

    The best teacher ever

  • @sangeetasingh2278
    @sangeetasingh2278 3 ปีที่แล้ว +1

    A great lesson as always Paul

  • @anupamhospital
    @anupamhospital ปีที่แล้ว

    Your teaching is amazing. Love you a lot.

  • @williamparrish3066
    @williamparrish3066 3 ปีที่แล้ว

    Great Job Sir! I was always a hardware engineer. I am learning this programming for my model railroad hobby using the arduino for the interface.

  • @chalmerditmars7037
    @chalmerditmars7037 ปีที่แล้ว

    My idle shell took the input as strings so it put the two numbers back to back when I added them so I changed input to int(input(------------------)). Found this today, really enjoy lessons so far.

  • @ahmetcemturan
    @ahmetcemturan 3 ปีที่แล้ว +4

    You are awesome. I am learning Arduino from You.. I am 52..

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +1

      Youngster

    • @ahmetcemturan
      @ahmetcemturan 3 ปีที่แล้ว

      @@paulmcwhorter Definitely. You and me both...

    • @bryankohn9660
      @bryankohn9660 3 ปีที่แล้ว +1

      I just finished the Arduino series and I am pushing 60.

  • @vanitakurse6982
    @vanitakurse6982 3 ปีที่แล้ว +1

    Thank you for the outstanding lessons! Your lessons have been so helpful and I greatly appreciate your time in making these videos and sharing with everyone.

  • @manavt2000
    @manavt2000 3 ปีที่แล้ว +1

    Thanks Mr Paul for such great lessons!

  • @worldplaces3322
    @worldplaces3322 3 ปีที่แล้ว

    Mr. Paul you are a great professor and a great person. Im so glad meeting you through these lessons. Please come to my University(University of West Attica,Athens) and give us an excellent lecture with your great teaching method.

  • @sibinkuttan
    @sibinkuttan 3 ปีที่แล้ว +2

    I got the homework done Paul, Kuddos ! 👍👍

  • @waynemunger4648
    @waynemunger4648 3 ปีที่แล้ว

    Your videos have been great help in helping me with this project this is just something that I'm trying to overcome I want to move 180 on the X axis but I don't want it to return when I put the joystick to center

  • @pedrocosta8922
    @pedrocosta8922 3 ปีที่แล้ว

    Hello, Paul! Doing the homework, I wasn't getting the desired result but I went to search for the way to get the inputs as integer or float numbers and then I got the desired result. :D Cheers!

  • @adelabuidris6292
    @adelabuidris6292 2 ปีที่แล้ว

    First_umber = int(input( 'please input your first number '))
    Second_number = int(input( ' please input your second number '))
    Number = first_number + second_number

  • @POkErr-od6ni
    @POkErr-od6ni 3 ปีที่แล้ว +1

    Hello Sir, you was wondering on 08:30 what happened there. Here what happened: as you printed Hello World before, you was very excited, and you made a selection in the Shell - you selected ello World. Well, when you select something in the shell, and then you press on Enter, the selection will be repeated - so after you typed the number 7, you pressed the enter button, and as the selection above was still there, after the 7 there was ello World pasted...
    You are doing a great job, and I follow your videos. Greetings from Germany

  • @Японскийшагзашагом
    @Японскийшагзашагом ปีที่แล้ว

    Thank you very much for an amazing lesson. Struggled with the assignment, but completed it nevertheless!

  • @markbradley1273
    @markbradley1273 27 วันที่ผ่านมา

    When you add values it may be better to declarer them as the type "INT"

  • @decheek476
    @decheek476 9 หลายเดือนก่อน

    thank you. you are a very good teacher

  • @nafisahmad4968
    @nafisahmad4968 3 ปีที่แล้ว

    if the 'ok' button annoy you after press 'run module'. Than go to 'option' > 'configure IDLE' > 'General' > in the middle of the page 'At start of Run (F5)' section press 'No prompt'. than press 'apply' than 'ok' to solve the annoy thing

  • @vince6219
    @vince6219 3 ปีที่แล้ว

    Hi Paul, I just jumped in at lesson 3, and I really enjoyed it... I think I'm going to learn python, so I am going to go back to lesson 1. Thanks for sharing your knowledge with us 😊

  • @alfredcheung6704
    @alfredcheung6704 3 ปีที่แล้ว

    Thanks a lot Paul. Good teaching!

  • @YaakDavid
    @YaakDavid ปีที่แล้ว

    Thanks for the lesson, I am requesting if you have PDF link on each lesson so we can download. It really helps a lot.

  • @laisreis5038
    @laisreis5038 10 หลายเดือนก่อน

    I love PythonLand, I love it uuuuh lot!

  • @centrodoreforco-aulasderef7743
    @centrodoreforco-aulasderef7743 3 ปีที่แล้ว

    Thank you so much for sharing your knowledge!

  • @codecage9333
    @codecage9333 3 ปีที่แล้ว

    Home work done! And discovered two ways to accomplish the 'trick' without all the giveaways I now see were posted earlier.
    Shame on you folks for giving up the secret! :-)

  • @hanzdanilogallegolara753
    @hanzdanilogallegolara753 3 ปีที่แล้ว +1

    Amazing 🤩, thank you again Paul

  • @vhsable
    @vhsable 3 ปีที่แล้ว +3

    Seemed a short lesson, However very good, I see what you was up to. Got the work done eventually lol nice one

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +1

      Yep, you see now the main point of the lesson. Little surprise in there

  • @hassanniaz7583
    @hassanniaz7583 3 ปีที่แล้ว

    Thank you for your efforts sir!

  • @leonardomiguel9113
    @leonardomiguel9113 3 ปีที่แล้ว

    I'm learning a lot about python. Thank you very much.

  • @TheRealFrankWizza
    @TheRealFrankWizza 3 ปีที่แล้ว

    Thanks for the exceptional tutorial!

  • @frankfaubert1927
    @frankfaubert1927 9 หลายเดือนก่อน

    Great lesson Paul.
    Is there a place where we can see what outputs command prompts give? I was about pulling my hair out before I found out that 'input' always returns a string. Finding the 'int' command was another rabbit hole.😂

  • @SIMONMUTSIWA
    @SIMONMUTSIWA 6 หลายเดือนก่อน

    Enter your first number: 29
    Enter your second number: 28
    The total for the 1st number which is 29 and the 2nd number which is 28 is 57

  • @pythongui5199
    @pythongui5199 3 ปีที่แล้ว +1

    Great class!

  • @robertbrodine9841
    @robertbrodine9841 3 ปีที่แล้ว

    I don't mean to be picky, but you seem to ignore formatting here. There is a double space between 'Hello' and 'Paul' and a double space between 'Paul' and the comma. Love your lessons!!

    • @bryankohn9660
      @bryankohn9660 3 ปีที่แล้ว

      Try deleting the space after the Hello and instead of a comma after name, use a + and a comma “Hello”,name+’ ,’ , ‘Welcome to Python Land!’

  • @demotulation
    @demotulation 3 ปีที่แล้ว +1

    after some searching :
    please input your first number: 5
    please enter your second number: 6
    your numbers add up to 5 + 6 = 11

  • @86Carrera911
    @86Carrera911 3 ปีที่แล้ว +1

    OK, so when I typed in the below, it seems as though python is treating my inputs like strings instead of numbers. In the video examples, the only items that were added together were statically set prior to adding them and printing the result. Pretty sure there's a way to tell python how to treat things, but I don't think Paul has gone over them yet.
    x=input('Please input your first number:')
    y=input('Please input your second number:')
    z=x+y
    print('The result of', x, '+', y, 'is: ',z)

  • @atomwiley
    @atomwiley 3 ปีที่แล้ว

    I figured it out, more tricky then I thought.

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +2

      Ha! I do things for a reason. I think a very important lesson was learned on assuming you will get a certain type of variable.

  • @HUDSON-EV
    @HUDSON-EV ปีที่แล้ว

    Great lesson.

  • @tameraziz2104
    @tameraziz2104 3 ปีที่แล้ว

    Thank you Paul..

  • @modededom6244
    @modededom6244 ปีที่แล้ว

    10:33 love it

  • @dolfinmagikpro
    @dolfinmagikpro 3 ปีที่แล้ว

    Great lesson ... Thank you!
    Just curious ... Why does it add a space before and after a string?
    For example, you typed (I'll type an underscore to represent spaces) "print('Hello_',_name,_'_Welcome to Python Land!')
    And it returned "Hello__Paul_,_Welcome to Python Land!" Is there a way to make those extra spaces go away? Is there something besides a comma that could be used, perhaps a semi-colon that wouldn't leave those extra spaces before and after the variable?
    Thanks again! As always ... Have a better day!

    • @adityaali176
      @adityaali176 3 ปีที่แล้ว

      just dont type in the spaces, python automatically adds a space where it sees a comma.

  • @navinsharma5733
    @navinsharma5733 3 ปีที่แล้ว +1

    thank you:) i wish you were my python teacher in clg

  • @paraglide01
    @paraglide01 3 ปีที่แล้ว +1

    Black decaf with sweetner ;-) But all jokes aside thank you for all your great tuts.

  • @thirupathaiah2981
    @thirupathaiah2981 3 ปีที่แล้ว +1

    Python controlling machines 🤩

  • @chrisingram7277
    @chrisingram7277 3 ปีที่แล้ว +1

    Did exactly like you said and....:) Thanks Paul for another great lesson with homework, I just have to figure out why 4+5=45.....

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +3

      Houston, we have a problem!

    • @chrisingram7277
      @chrisingram7277 3 ปีที่แล้ว +1

      @@paulmcwhorter Got it :) Have a great week.

    • @joe-ed6gs
      @joe-ed6gs 3 ปีที่แล้ว

      Same, did you find the problem?

    • @chrisingram7277
      @chrisingram7277 3 ปีที่แล้ว +2

      @@joe-ed6gs Yes, after the input lines I added, x=int(x), the keyboard must be inputting a string value, we'll see next Wednesday.

  • @opalprestonshirley1700
    @opalprestonshirley1700 3 ปีที่แล้ว

    I've missed the homework. Thanks, Paul

  • @W7LDT
    @W7LDT 3 ปีที่แล้ว

    I am in outing 2 numbers, x and y. Then coding z=x+y. If x=55 and y=66, z prints as 5566. Looks like a variable issue. Since I’m going through the AI lessons as well, I am running ver. 3.9.6. If that matters.

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว

      And you are not the first one to find this. Watch the next lesson my friend.

  • @alexthebear
    @alexthebear 3 ปีที่แล้ว

    Oh, i found a problem - input got string instead of number
    so i had to cover int(input()) and it worked fine.
    Cool .... Thanks

  • @AvanzahHYYPO
    @AvanzahHYYPO 10 หลายเดือนก่อน

    This is very lovely.

  • @waynemunger4648
    @waynemunger4648 3 ปีที่แล้ว

    So I'm hoping there is a line that I can put somewhere in my program to stop it from doing that I am using the program that you wrote out in series 33

  • @leebasham1107
    @leebasham1107 2 หลายเดือนก่อน

    Nasty, I tried this and found that it just printed out my numbers as a strin so 4+8 came back as =48
    I looked and input Always returns a string, so i converted them to an int using
    x = int(input("Please enter your first number "))
    this gave me the result i needed.

  • @pralaymajumdar1206
    @pralaymajumdar1206 3 ปีที่แล้ว

    I love you sir.. Python rock.

  • @skoupidio88
    @skoupidio88 3 ปีที่แล้ว

    Thank you!

  • @kylerebello5772
    @kylerebello5772 3 ปีที่แล้ว

    Paul can we expect any more videos for the AI on the Jetson Nano series??? It was great, btw.

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +2

      I probably need to redo that series. The lessons were made on jetpack 4.2 and we are up to 4.5 now

    • @tanishbhongade
      @tanishbhongade 3 ปีที่แล้ว

      @@paulmcwhorter Hey Paul, you have made great series of Arduino, Arduino with Python too. Can you please make a series on MicroPython? It will be great.

    • @duanecjohnson
      @duanecjohnson 3 ปีที่แล้ว

      Yes MicroPython!!!!
      Actually that is why I'm taking the Python Course.
      I feel the MicroPython guys are assuming you already know how the syntax works.
      Even the documentation seams to think that too.
      I wasn't getting very far other than just copying the examples.
      MicroPython will be very useful for the small processors for a tinkerer like me.
      I grew up on interpreters like Basic and forth, both of which allow direct pin manipulation on small pieces of code. Just like Python does.
      redrok

  • @sathyaprasad2389
    @sathyaprasad2389 3 ปีที่แล้ว

    Thank you sir 🙏

  • @waynemunger4648
    @waynemunger4648 3 ปีที่แล้ว

    Hi Paul how are you doing I am trying to program servo motors for a robot arm I'm using a spring loaded joystick an a arduino I would like to know if there is something that I can put in my program to stop the robot from returning to zero when I move the joystick back to center even if there is a time delay I can put in there so if I wanna open up my grippers I would like my grippers to stay open even when the joystick is returned to center

  • @ec_morden_design
    @ec_morden_design 3 ปีที่แล้ว

    Sir u didn't talk out list in lacture 3
    Please brief about list

  • @warrenscorner
    @warrenscorner 3 ปีที่แล้ว

    Hey Paul, I noticed your adds are getting more frequent. I don't have a problem with that but just wondering if you get paid from the add if I click skip? I've been thinking of getting a TH-cam subscription to avoid the adds anyway. If I'm not mistaken, I will not see any adds then.

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว

      TH-cam places the ads. I sometimes wonder if they are trying to make them more obnoxious so people will subscribe. Perhaps they would rather have a subscription business model, and not have to deal with advertisers. Just my speculation.

  • @professorxavier9692
    @professorxavier9692 2 ปีที่แล้ว

    In the Python 3.9.1 Shell I downloaded, there is not an area near the top of the window that contains the "File", "Edit", "Options", "Window", "Help" sections. My shell contains only a window, which means I can't save any of the code. Do you have any ideas for troubleshooting? I have a Windows 10 OS, Asus Vivobook. I went on the Python site and downloaded multiple versions but I am somehow still having the same problem even though I currently have the latest version downloaded. Swift help would be greatly appreciated my friend!
    EDIT: Nevermind, I decided to just use Pycharm for the time being

  • @steveholt8991
    @steveholt8991 5 หลายเดือนก่อน

    I had to convert the input to numbers before doing any maths , like x = float(input("Please enter first number: "))

  • @johnsun2416
    @johnsun2416 9 หลายเดือนก่อน

    Python run code 1 time only from 1st.line to last line of code? can you set it to run repeatlly in loop like Arduino sketch?

  • @abhishekprabakar2775
    @abhishekprabakar2775 3 ปีที่แล้ว

    you are really fun!

  • @waltranger8160
    @waltranger8160 ปีที่แล้ว +1

    BOOM 7 + 2 = 9 LETS GO

  • @Sergey-m2y
    @Sergey-m2y 18 วันที่ผ่านมา

    Добрый день. Скажите пожалуйста,а есть исходные тексты к урокам? Спасибо

  • @nammakudla5525
    @nammakudla5525 3 ปีที่แล้ว

    Sir, should I start watching your aurdino series first or python series ?

    • @danbishop4035
      @danbishop4035 3 ปีที่แล้ว

      The arduino series will make you think in a way that helps when doing the python training but learning them simultaneously is definitely possible too.

  • @davidschnider1297
    @davidschnider1297 ปีที่แล้ว

    I like easy lessons .. LOL .. and easy homework assignments...

  • @dzeykop
    @dzeykop 2 ปีที่แล้ว

    Thank you for another great lesson, Sir! Your lessons are not wasted time (#NWT) for me and that is exactly what I want! 👍

  • @andrewhodson8346
    @andrewhodson8346 3 ปีที่แล้ว

    Hi Paul, got the homework done eventually thanks to genius giraffe's hint 😜

  • @advancedperformance9721
    @advancedperformance9721 3 ปีที่แล้ว

    Love it 😀

  • @irethoronar34
    @irethoronar34 3 ปีที่แล้ว +1

    Buum. You are the best!

  • @Ryuh04
    @Ryuh04 3 ปีที่แล้ว

    Finished my homework! See you all next week!

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว

      Did it work?

    • @Ryuh04
      @Ryuh04 3 ปีที่แล้ว

      @@paulmcwhorter yes sir!

  • @karraralmukhtar
    @karraralmukhtar 3 ปีที่แล้ว

    I just love you ❤

  • @jordanurteaga9480
    @jordanurteaga9480 3 ปีที่แล้ว

    I click "run module" then "ok to save" but nothing happens in the shell

  • @noweare1
    @noweare1 2 ปีที่แล้ว

    Coming from a C background I feel like I'm skipping lots of steps programming in python. So this is what a high level lang. feels like : )

    • @paulmcwhorter
      @paulmcwhorter  2 ปีที่แล้ว +1

      Yes, Python gives you just enough rope to hang yourself. Things like not declaring variables sets you up for unanticipated problems that can be very difficult to solve. Thinking you are working with an int and learning python has made it a string . . . well, not good. I really like more formal languages.

  • @harrison4687
    @harrison4687 3 ปีที่แล้ว

    Looks like Python already adds in spaces for the print function.

    • @paulmcwhorter
      @paulmcwhorter  3 ปีที่แล้ว +1

      Which I actually hate. Better way is to build a sting using '+' concatination function, like this.
      myString = 'Hello '+name+', Welcome to Python'
      That way, you control the string, then print the string.

  • @larryplatzek9017
    @larryplatzek9017 3 ปีที่แล้ว +1

    I did my homework without seeing comments !

  • @Wolf-r9d
    @Wolf-r9d 2 ปีที่แล้ว

    Does Pycharm have this? I can’t find the “new file” tab and when I put “new” and then “file” it doesn’t have that I’m so confused

    • @Wolf-r9d
      @Wolf-r9d 2 ปีที่แล้ว

      Okay, I think I figured it out

    • @paulmcwhorter
      @paulmcwhorter  2 ปีที่แล้ว

      Your life would be so much easier in this class if you would use the same IDE as me. As we get into the different versions and virtual environments, if you are not familiar with these things you could be in for a struggle.