Python Beginner Tutorial 2 (For Absolute Beginners)

///Python Beginner Tutorial 2 (For Absolute Beginners)

Python Beginner Tutorial 2 (For Absolute Beginners)

FavoriteLoadingAdd to favorites

Introduction to Python for beginners. This tutorial covers the use of IDLE to run python scripts but focuses on running python scripts from the command line using a text editor like notepad++. This video also focuses on input and output of a python program. The video covers an introduction to variables and an introduction the assignment operator (=). Lastly, this video highlights the usefulness of the python shell.

This video series is ideal for individuals looking to learn their first programming language or individuals looking to learn python as another programming language.

Forum:
Blog:

source

By |2019-07-19T21:19:17+00:00July 19th, 2019|Python Video Tutorials|48 Comments

48 Comments

  1. Jignesh Padia July 19, 2019 at 9:19 pm - Reply

    Thanks for this. It is very cool to learn from you. Question – after getting the input of the name (i.e. Kevin), what if I wanted it to print "How are you doing Kevin?" I am able to use print function twice (I wanted it to use the variable to recall the entered name) but than its not in the same line as a complete sentence. Any help?

  2. Mohamed Ameerodien July 19, 2019 at 9:19 pm - Reply

    Very useful video. Love it thank you dude

  3. daphnes1001 July 19, 2019 at 9:19 pm - Reply

    If it doesn't work, instead of python, type py.

  4. Gman65 Zachary July 19, 2019 at 9:19 pm - Reply

    I Would Recommend PY Charm For This

  5. teodor serbezov July 19, 2019 at 9:19 pm - Reply

    how to set up the pyton on windows 10?

  6. Scott Wiseman July 19, 2019 at 9:19 pm - Reply

    great video. was able to install python on my windows machine in 5 minutes and test with print("hello world") and x = 1 then x = x +1 then print(x)
    fantastic

  7. Grand Modz July 19, 2019 at 9:19 pm - Reply

    New background

  8. Kelly Young July 19, 2019 at 9:19 pm - Reply

    This helped me a lot

  9. Nicholas Bennett July 19, 2019 at 9:19 pm - Reply

    Hello I'm visually impaired trying to use python and I'm wondering if there is a way to see how to print the code on screen? for example print((hello world)) or is it print ((Helloworld)) I'm using a screenreader to type this. and I'm using notepad++ Tc

  10. Keith Inman July 19, 2019 at 9:19 pm - Reply

    I guess you won't be responding to comments, but I have a problem. When I type in my name without quotes, I get an error. Is there any way to tell the computer what I'm inputting so that I won't need to type in quotes to get an error?

  11. Atwine Moses July 19, 2019 at 9:19 pm - Reply

    You are a great teacher… Thanks for this simplified lesson

  12. Nematullo Rahmatov July 19, 2019 at 9:19 pm - Reply

    Hello, could you give some home work plz for every tutorias,,,Thanks

  13. Sir Intellitoke July 19, 2019 at 9:19 pm - Reply

    myName = input("What is your Name? n")
    print("Hello",myName)

    The 'n' is for a new line.
    Combined the print function for Hello and the variable onto one line.

  14. Sean Santiago July 19, 2019 at 9:19 pm - Reply

    you a life saver! i enjoy your teaching style

  15. siphelele nxumalo July 19, 2019 at 9:19 pm - Reply

    when i change the TXT file to .py . the file type doesn't show up like yours on the screen.
    And even i want to run the python Hello World program on CMD it just says "Python is not recognized and a internal or external command…………………………..

  16. Sidra Duhoki July 19, 2019 at 9:19 pm - Reply

    your videos are so useful , good job πŸ™‚

  17. Magdoulin Shams El-Din July 19, 2019 at 9:19 pm - Reply

    what do I need to put my answer for 'What is your name' input
    so to answer I have to put my name like that 'Magdoulin'
    otherwise it returns with error
    I'm taking about both of CMD and Python shell here
    and I use 2.7 version if this is a reason

  18. HydroFriedBacon July 19, 2019 at 9:19 pm - Reply

    When I typr python in cmd it says this β€œinvalid syntax python helloworld.py file β€œ(stdin)”, line 1”

  19. jojotanify July 19, 2019 at 9:19 pm - Reply

    awesome videos! Keep it up πŸ™‚

  20. Yuliia Khalus July 19, 2019 at 9:19 pm - Reply

    I'm enjoying your videos so much!! Thank you!

  21. Arturo Paz July 19, 2019 at 9:19 pm - Reply

    Kevin I'm learning from your tutorial using a Mac. I get this error while trying to input my name after what is your name?
    >>> print('hello world!')
    hello world!
    >>> myName = ('What is your name?')
    >>> myName
    'What is your name?'
    >>> myName = input('What is your name?')
    What is your name?Arthur
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "<string>", line 1, in <module>
    NameError: name 'Arthur' is not defined
    I know it's the basics but would it have anything to do with the fact that I'm using a mac? Or did I do something wrong?
    print("Hello World")
    myName = input("What is your name?")
    myVar = 'Hello'
    print(myName)
    print(myVar)

  22. Donnie Lurk July 19, 2019 at 9:19 pm - Reply

    I love your tutorials. You explain it in a simplified way! I’ve been searching for days for tutorials like yours and you explain it EXACTLY in a manner that a beginner would actually understand. Unlike most. Great job and thank you.

  23. TheJektt July 19, 2019 at 9:19 pm - Reply

    First vid has like 2.000.000 views and this one 750.000
    not even started doing anything and allready given up. xD

  24. Demons Crew July 19, 2019 at 9:19 pm - Reply

    i have an issue
    when i write helloworld.py in cdm it answers me "hello world" /n "whats your name ?"
    but when i write mohamed i tells me name error name 'mohamed' is not defined .. can yo tell me what to do ?
    thanks

  25. PaletoB July 19, 2019 at 9:19 pm - Reply

    Ok a few tips for beginners, you have to restart the pc after adding python to the environment path, and you might have to activate file extension to edit the .txt to .py. ( or rather diactivate hiding it)

  26. andrew l July 19, 2019 at 9:19 pm - Reply

    So much simpler then java

  27. Jordyn Robare July 19, 2019 at 9:19 pm - Reply

    Anyone know why I the command prompt doesn't understand my space between hello and world, unless I use quotation marks, but his does?

  28. Jendoubi Hafedh July 19, 2019 at 9:19 pm - Reply

    Wow this is very helpful bro. Thank you, I apperticate that! πŸ˜€

  29. Freddie July 19, 2019 at 9:19 pm - Reply

    Thank you so much

  30. Jaikrat Singh Tariyal July 19, 2019 at 9:19 pm - Reply

    loved your wallpapers πŸ™‚

  31. Van Bawi Thawng July 19, 2019 at 9:19 pm - Reply

    are your videos one meant for windows users ? because i am not able to follow the instructions as im using macbook.

  32. Arjun Johal July 19, 2019 at 9:19 pm - Reply

    Very helpful I have just started to use python and I'm intrigued to know more. NICE VID DUDE

  33. Disatiere July 19, 2019 at 9:19 pm - Reply

    Why would you go through all that trouble to type in a standard path on windows?

    All you had to do is CD desktop since your %CD% already contained desktop in it.

    But even if you were in CD C:\ a way better way is to pretty much always use CD C:\Users%USERNAME%desktop as this will already check the name of the currently logged in User and save the hassle of going into the file explorer to copy the path.

    Another great thing would be writing this batch script [py.bat]
    @ECHO OFF
    SET OLDCD=%CD%
    ::^saving your old Directory position before hopping to resources
    CD C:ProjectsPythonResources
    ::^This is the place where you put all your .py files

    SET/P X="Script to run:"
    ::^This is basically the CMD version of X=input and is used to specify what script to start

    IF EXIST %X%.py GOTO RUN
    ::^ This checks if the script exists
    CLS
    ECHO This script aint existing fool!
    EXIT/B
    :RUN
    python %x%.py
    CD %OLDCD%
    ::^Restoring your old directory

    then put it in C:\WindowsSystem32

    This makes you able to simply type in py in cmd to open a prompt to type in the name of a script to run instead of having to navigate to a certain filepath and then using python script.py to run the script

    If you need more than one filepath to be "scanned" you can simply stack scans like so:

    CD C:ProjectsPythonResources
    IF EXIST %X%.py GOTO RUN
    CD C:ProjectsGeneralResources
    IF EXIST %X%.py GOTO RUN

    and then have the error display

  34. Adrian Balaj July 19, 2019 at 9:19 pm - Reply

    i cant get the text document to be from .txt to .py because when i open a new text document it doesn't show mw as it did to him it says like new document 02 and thats it soemone help in dont know how to fix it i have looked online but no help

  35. Tiago Sagradas July 19, 2019 at 9:19 pm - Reply

    Thank your for your tutorial

  36. William Hernandez July 19, 2019 at 9:19 pm - Reply

    Whats your SteamID, bruh ?

  37. Awakening Animations July 19, 2019 at 9:19 pm - Reply

    Hi man! when i create my text document, firstly it doesnt have the .txt part it just names it text document and then if i name it "helloworld.py" it doesnt change it to a python file it just remains a text document. is there something im not doing correctly?

  38. chaoscowrhn July 19, 2019 at 9:19 pm - Reply

    Thanks for the videos buddy! very helpful.

  39. Korban Ali July 19, 2019 at 9:19 pm - Reply

    thank you.. those are the best sessions for new learners

  40. Cayde July 19, 2019 at 9:19 pm - Reply

    When I type my name is says the name is not defined? What did I do wrong?

  41. Darkrocmon July 19, 2019 at 9:19 pm - Reply

    For people on windows 10 having issues changing the file extension you have to enable it in the control panel.
    Control Panel>Appearance and Personalization>File Explorer Options>Click View Tab>Uncheck Hide Extensions For Known File Types thats it

  42. Matt Ballam July 19, 2019 at 9:19 pm - Reply

    So I managed to add python to the variables, and it worked. However, when I try to run a script e.g. "python Helloworld.py" it seems like I actually need my py file to be in the same directory as the python.exe. Is this correct? In your next video, you run a python script which is saved on the desktop. Did you have to add your desktop as a variable too?

  43. Diesel F4 July 19, 2019 at 9:19 pm - Reply

    And the reason for the error is that you did not include Python in your path variable which you forgot to mention and demonstrate in the first video. Look for the path in system variable and add the to where python is at the end of the path.

  44. ZombieZenMaster July 19, 2019 at 9:19 pm - Reply

    following your directions to the letter… not working with input commands

  45. Vorous July 19, 2019 at 9:19 pm - Reply

    You are a awesome teacher πŸ˜€

  46. Vorous July 19, 2019 at 9:19 pm - Reply

    Hi

  47. Tanner Hitt July 19, 2019 at 9:19 pm - Reply

    when I change the name of the note to helloworld.py it does not give me the option to change file extension. How can I fix this?

Leave A Comment

*