Python Tutorial for Beginners with VS Code 🐍

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 251

  • @DaNOliveiraDaN
    @DaNOliveiraDaN 6 місяців тому +123

    Just started a Python course for beginners (Harvardx) and in the first class the teacher just said: open VSC and type this code. I didn't know where to get it, how to get it, if I needed to install python, how to install it, nothing. Needed to come here to learn that. Thank YOU and screw that teacher.

    • @kevintaylor8122
      @kevintaylor8122 5 місяців тому +6

      Same here.

    • @zeynab107
      @zeynab107 5 місяців тому +10

      same lol and I still don't know how he managed to create a new file by writing "code hello.py" in his terminal

    • @monseneur00economist
      @monseneur00economist 5 місяців тому

      @@zeynab107because he’s in Harvards dev environment

    • @khalidmohammed6197
      @khalidmohammed6197 3 місяці тому +1

      can you please directe to this course link or which platform ?

    • @bodybypriest3745
      @bodybypriest3745 2 місяці тому

      I'm having issues with power shell. This tutorials ain't working for it. I don't have bash

  • @User.2024.1
    @User.2024.1 8 місяців тому +26

    Dave is my new favorite UA-cam instructor.
    I started Python with Mosh paid version (the most popular on youtube too) but then switched to Dave's course and never looked back. Why? Mosh is only focused on syntax while Dave walks you through real projects and examples and best practices on how to use the language in real life. Subed. keep them coming!

  • @kcell2042
    @kcell2042 Рік тому +20

    There are many other Python courses, but I've been waiting for Dave's Python course.
    Thank you!

  • @DevTalksTech
    @DevTalksTech 4 місяці тому +3

    This was so thorough and helpful! So many tutorials that give direction with the assumption that you know certain things already, but you broke this down perfectly for a beginner. Thank you!

  • @MegaJohn144
    @MegaJohn144 11 місяців тому +3

    I only install a new version of Python once a year when the new version comes out, but here's a word of caution for all Windows users. I keep forgetting this and having to re-learn it the hard way. Run the setup in Admin mode. Don't take any of the defaults when you understand Python. Click the option whare you choose what to install. Be sure and add Python to your PATH, and install Python for ALL user. Do everything in admin mode. I forgot to do this and wound up having to install and uninstall three times before I finally got it right.
    Up till now, I have been using Sublime Text for my development, but I saw some new videos about using VS Code. I am going to try it, and this is the reason why I am watching this.

    • @supergamer2026
      @supergamer2026 Місяць тому

      thank you so much! VS code was saying that Python was not found even though I selected the Python interpreter manually but then I followed your steps and what you said, I uninstalled Python then re-installed it with Admin privileges and when i ran the command "py -3 --version" in VS code it finally showed me the version of Python I was using. I highly advise everyone reading my comment to install Python with Admin privileges if you're facing the same problem I was facing when running that command.

  • @shivendra3019
    @shivendra3019 Рік тому +8

    At first I thought this will be a next js course video but I understand why python as it is very flexible and more easy to learn programming language which will benefit many people including a lot of beginners as their first choice of programming language. Thank you very much sir.

  • @clen9870
    @clen9870 7 місяців тому +1

    I do not know if comments are read on old videos, but I have to say the step-by-step guide and your explanations are excellent. I will be liking and subscribing and look forward to learning more.

  • @usmaanahmed9450
    @usmaanahmed9450 Рік тому +6

    Thanks Dave! really learned HTML from your channel please please continue this series !

  • @baxtiyortursunov1494
    @baxtiyortursunov1494 Рік тому +6

    Thank you so much Dave, I was looking forward to seeing Python tutorials on your chanel, finally my dream came true, please keep making such excellent videos 😊

  • @ranjanrnj6864
    @ranjanrnj6864 Рік тому +7

    Dave, I'm 100% sure it gonna be great playlist once again. Thank you!
    suggestion: Before directly jumping into the fundamentals it would be great to know details (under the hood how python communicates and executes, and how the memory are getting occupied and freed when the variables are used). Kind of 1 therotical video dedicated to this would be helpful to understand more clearly.
    THANKS IN ADVANCE!

  • @webdeveloper2795
    @webdeveloper2795 8 місяців тому +1

    Dave => Real Mentor for JavaScript and python

  • @folajhimie
    @folajhimie Рік тому

    I actually Consumed all your Javascript, and React.js including ur Node.js Tutorials... And I can say ur teachings made me a better Developer... the Timing is perfect was about to jump on Python only to come across ur Python Tutorial for Beginners... I am so excited, I believe u would do justice to this as u did for Javascript... Looking forward to touching on Python frameworks like Django, fast API, and Flask... Thanks, Dave Dray

  • @butterfly5572
    @butterfly5572 10 місяців тому +1

    Thanks to the friend who sent me this link. I got the confidence in learning VS with python.

  • @Vorslav
    @Vorslav 7 місяців тому +2

    the only tutorial that made me get my head around it. thanks Dave

  • @SHADOWMONARCH-g4l
    @SHADOWMONARCH-g4l 3 місяці тому +4

    when I write py -3 --version on my windows(11) . it says py is not recognized as an internal or external command..... i chose command prompt . what to do???

  • @georgep779
    @georgep779 5 місяців тому +1

    you are born to be a professor. Too good instructions. Nice

  • @michaelhudson2375
    @michaelhudson2375 Рік тому +3

    Great content, well presented & explained. As a learner half the battle is getting the confidence to keep going and I was able to follow this video and have it work exactly as shown. Thank you. Also appreciated the information about VS Code and especially using the terminal, which can be a scary place to go for a beginner. Looking forward to completing the whole playlist.

  • @xNibsu
    @xNibsu 6 місяців тому +4

    I just started to learn this python thing and noticed that in Python 3.12 Windows version, you also have to use "python" instead of just typing "py". Not sure is it just me but it is what it is.

    • @mila_a0441
      @mila_a0441 5 місяців тому

      hi sorry but when i use py or python on the terminal it says that it's not recognized as a command?

  • @heinzandberg2716
    @heinzandberg2716 Місяць тому

    Thank you. This is one step closer to achieving my goal!!!

  • @ewenchan1239
    @ewenchan1239 19 днів тому

    THANK YOU for this video!
    I am a mechanical engineer and I have managed to escape both my university studies and my professional career with NOT knowing/learning how to program.
    My tiny human #1 though, as I look at where the world is going, is unlikely going to be able to pull that off.
    So, I REALLY appreciate you making this video so that I was able to install Visual Studio Code for tiny human #1, so that tiny human #1 can start programming for real (rather than using block-based programming).
    One question I have though -- how did you set up your VSCode so that it will use command prompt to compile/run your Python code (rather than using Windows PowerShell)?
    I tried looking through the settings and it wasn't immediately obvious where and/or how I can set the command prompt as the default.
    Your help is greatly appreciated.
    Thank you.

  • @bastiane215
    @bastiane215 Рік тому

    I used to be learning code in python with vs code but I left because I had so much troubles with it. I checked all from the beginning and I find the problem ... Thank to you, I´m getting comfortable with the platform again and I hope I can boost my knowledge . Thank you!

  • @gaborbence6943
    @gaborbence6943 3 місяці тому +1

    fantastic work. clear concise, many thanks sir! :)

  • @mo7sin711
    @mo7sin711 4 місяці тому +2

    I get this error message when I try to verify my version or type py in the terminal:-
    path was included, verify that the path is
    correct and try again.
    At line:1 char:1
    + py -3 --version
    + ~~
    + CategoryInfo : ObjectNotFound: (py
    :String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundExce
    ption

  • @akintobby
    @akintobby Рік тому +1

    I've been so skeptical about learning python but since you are d one teaching it, I will learn😋😋

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      Glad to hear that! Learning Python is a great additional skill even if you already know JavaScript.

    • @akintobby
      @akintobby Рік тому

      @@DaveGrayTeachesCode Thank you so much for everything sir🙏🙏

  • @zoltanmolnar6956
    @zoltanmolnar6956 Рік тому +1

    Man! you are just amazing. Please do not forget Django as well! Thank you!

  • @martinbrault1563
    @martinbrault1563 Рік тому

    Thank you Dave... I've been always wanting to learn Python, and who better to learn it from than you? Love It!

  • @omarakki705
    @omarakki705 Рік тому

    you are the best teacher i have ever seen, thanks dave

  • @idevbrandon
    @idevbrandon Рік тому

    Thank you Dave! My first PY practice and trial on other lang apart from JS!

  • @powang8978
    @powang8978 Місяць тому

    Awesome Video!! Thank you Dave.

  • @RonaldoRyne
    @RonaldoRyne 5 місяців тому

    Thank you Dave for making it easy

  • @almightyyotto
    @almightyyotto 7 місяців тому +9

    This video saved me big time before an assignment was due. After watching I learned more than I anticipated/was supposed to. Either way thanks Dave, I'll be back again.

  • @dimitrioszafeiropoulos673
    @dimitrioszafeiropoulos673 2 місяці тому

    Thank you for this tutorial :)

  • @bmehder
    @bmehder Рік тому

    Python is really nice to look at. I love JS in all of its strangeness, but I am looking forward to learning what a normal programming language feels like.

  • @IG7799-c4u
    @IG7799-c4u Рік тому

    Good introduction, I've been feeling a bit lost as to which direction to take as of late. I'm still slowly getting through your CSS tutorials, but I feel that I want to try something else as well just in case it doesn't lead to much in terms of future prospects. So I think learning a programming language like Python will be useful as I know it's quite popular and there's lots you can do with it. Looking forward to getting to the stage where I can get past the basics and build some personal projects.

  • @yw3546
    @yw3546 Рік тому

    Couldn't wait for your flask tutorial!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      I don't have one yet, but after the Python for Beginners series I will get into other topics with Python.

  • @khalidakhan6089
    @khalidakhan6089 Рік тому

    Thanks very much,Sir. Please teach in-depth Python programming to an expert level. I like your teaching and vivid explanation method. I've learned so much from you.
    Stay Blessed.

  • @baranip1331
    @baranip1331 2 місяці тому

    Nice Dave, Keep going !! 🙂

  • @CTILET
    @CTILET Рік тому

    Ooo Dave! You are best in all programing languages

  • @dafiraone
    @dafiraone Рік тому

    We're going python! Thank You Dave

  • @sdfsfsfd437
    @sdfsfsfd437 Рік тому

    Great! I had to learn Python! Thanks a lot!

  • @IG7799-c4u
    @IG7799-c4u Рік тому +1

    I can't seem to verify the Python version using the terminal. I keep getting an error saying: '$' is not recognized as an internal or external command, operable program or batch file.
    Edit: Never mind, I just realised it's probably a bash command. Typing in the code without the '$' works fine.

  • @ogt1407gabriel
    @ogt1407gabriel Рік тому

    cant wait for the next episode of this series

  • @CDeeMondays
    @CDeeMondays 6 місяців тому

    many thanks from the bottom of my heart!

  • @noahatya755
    @noahatya755 22 дні тому

    Hi, I ran into a problem when running the last bit and it gives me [Errno 2] No such file or directory. What can be done in this case?
    thanks

  • @teetanrobotics5363
    @teetanrobotics5363 Рік тому

    Thanks for the upload. However, would prefer a Next js course. Since there are lot of terminologies like SSG, SSR, ISR, etc. which many people find confusing. Request you for the same

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Coming Friday. I've been doing beginners topics on Tuesdays and more advanced on Fridays.

  • @Fush2
    @Fush2 Рік тому +1

    never thought gabe newell would teach me python

  • @okonkwo.ify18
    @okonkwo.ify18 Рік тому +1

    Dave thanks for starting this. I am a python programmer and hope that you would at some point teach how to create complex models ourselves and train them like chat GPT

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +2

      You're welcome! We are a good distance from that right now, but after the fundamentals we can dive into other topics, too. Data Science, ML, AI.. Python does a lot!

    • @okonkwo.ify18
      @okonkwo.ify18 Рік тому

      @@DaveGrayTeachesCode yes exactly! Am patiently waiting lol

  • @mohdiq7124
    @mohdiq7124 Рік тому

    Thanks Dave, Please continue python programming .. ✋

  • @parenteseswebdev
    @parenteseswebdev 6 місяців тому

    What do I type on a mac as Python doesn't work. I followed along and got the version, but after than errors.

  • @primeweird
    @primeweird Рік тому

    amazing, tutorials dave!!, please also make series on node with sequelize (ORM) MySQL

  • @riteshrawat05
    @riteshrawat05 Місяць тому

    Hey Dave , when i m using the "source .venv/Scripts/activate" command the terminal is showing that "'source' is not recognized as an internal or external command,
    operable program or batch file."
    How to fix this ?

  • @deeptib3123
    @deeptib3123 Рік тому

    Thanks, for the tutorial you made it understandable. My question is if i want to make notes for Python or a note-taking app. What and Which app would you suggest, apart from Jupyter which am learning....

  • @hosbalcantos7399
    @hosbalcantos7399 Рік тому +1

    how did u create you file lesson01?

  • @rohitsingh-xj1ey
    @rohitsingh-xj1ey Рік тому

    Thank you so much for all your efforts continue the good work ..

  • @iAmTheWagon
    @iAmTheWagon Рік тому

    A fourth way to run the file (not sure if this works on windows).
    Place this at the top of the file:
    #!/usr/bin/env python
    Then the file can be run directly like an executable with `./hello.py`

  • @sabertoothgamerz1750
    @sabertoothgamerz1750 4 місяці тому

    why does my vs code say that the python interprator is invalid?

  • @abinashmandal6202
    @abinashmandal6202 Рік тому

    Thank you for everything. Also please consider making course on firebase in near future.

  • @jorgeacosta1740
    @jorgeacosta1740 4 місяці тому

    When I do command shift p and type in python nothing shows up

  • @xzex2609
    @xzex2609 Рік тому

    is there any complete course like js 8 Hour or other tutorials ? I see some advance stuff in these videos and It's really convenient for me to download the whole video to follow along . the only thing is I always jump back to like and like again cause I really appreciate how valuable these course are. I wish he make a advance course and learn us how to deal with packages like I see in his virtual environment ( request package) cause those stuff are rare and you got to deal with then in web sites. like I had problem how to hide the API key for a program that I wrote , and accidentally I saw it in one of his beginner videos that really helped me a lot.

  • @khalilbenmeziane8836
    @khalilbenmeziane8836 Рік тому

    thank you dave we want the rest framework to build api an integrate it with react

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      You can do that with my Node.js course: ua-cam.com/video/f2EqECiTBL8/v-deo.html ..if you are waiting for Django or Flask with Python, we must cover the fundamentals first - but eventually 🚀

  • @nayahejazi7668
    @nayahejazi7668 Рік тому

    I am using a Mac, and I dont every step until you typed "Python; select interpret" it said "not found.

  • @jaysonnelson5396
    @jaysonnelson5396 8 місяців тому

    Dave and all, when you run a python file I notice that the next line of code in the terminal keeps you in the same directory. In my case, the next line of code takes me back to my home directory. How can I make it so that when running python files, the next lines of code in the terminal keep me in the same directory?

  • @josephagbo2908
    @josephagbo2908 Рік тому

    This went a long way!!

  • @ThuyLe-sy6zn
    @ThuyLe-sy6zn 8 місяців тому

    thank u Dave !

  • @kevinerose
    @kevinerose 7 місяців тому

    When I updated Python, it placed the newer version in a different location. Should I uninstall and reinstall? When I try to add libraries, it keeps pointing them to the older version. I can just copy my library folder but I don't want to keep doing that.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  7 місяців тому

      This article includes how to configure the Python path: blog.enterprisedna.co/where-is-python-installed/

  • @Micahkunn
    @Micahkunn 4 місяці тому

    thanks man

  • @MoZeDtheMonkey
    @MoZeDtheMonkey Рік тому

    awesome tutorial, what theme and icons are being used here? It looks good, appreciate you in advance!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Thank you!
      My theme choices: ua-cam.com/users/shortsdp4u1NNFhtE
      My VS Code icons: ua-cam.com/users/shorts-uhzj-kjfV4
      Add font ligatures: ua-cam.com/users/shortsf1HVI5slxms

  • @chipashawalichupa
    @chipashawalichupa 5 місяців тому

    Hello, I have a problem in python it does not ring no matter how many videos I watch I can't figure it out, please help.

  • @chipashawalichupa
    @chipashawalichupa 5 місяців тому

    Just started python it is not running please help me

  • @Mrlyricsman28
    @Mrlyricsman28 5 місяців тому

    In my VS Code it doesn't show the terminal

  • @vlad_the_player
    @vlad_the_player Рік тому

    Yeah python! I hope you will show some code with Django 😁

  • @RedRum1347
    @RedRum1347 4 місяці тому

    print("thanks. great help.")

  • @jipsonmv
    @jipsonmv Місяць тому

    py command doesn't work on bash

  • @ahzidmahmood6904
    @ahzidmahmood6904 10 місяців тому

    i am really struggling with this having to keep deleting and reinstalling vs code

  • @RISHIKESHSINGH-ex7vj
    @RISHIKESHSINGH-ex7vj Рік тому

    Thank you

  • @mohammadnabil6556
    @mohammadnabil6556 Рік тому

    Thanks a lot mr gray

  • @mortezafarhangpanah256
    @mortezafarhangpanah256 Рік тому

    thanks

  • @Zzland-h6w
    @Zzland-h6w 13 днів тому

    I just have iPad how start for the first using python in my iPad ""….

  • @mrbilchalan
    @mrbilchalan Рік тому

    I am bit of disappointed. Python should be come after Nextjs. But whatever, starting to learn the great "Python". Love the way you start.

  • @a_15_z32
    @a_15_z32 4 місяці тому

    INVALID syntax help

  • @dosamuel-mb
    @dosamuel-mb Рік тому

    can we expect to have more tutorials about python ?

  • @galaxian_wanderer
    @galaxian_wanderer Рік тому

    Dave I want to ask that what to do when the terminal says-
    File "", line 1
    after i wrote quit{} and pressed enter

  • @developedbypy
    @developedbypy Рік тому

    Is more coming out?

  • @ztvs1751
    @ztvs1751 7 місяців тому

    God bless you

  • @saitejagatadi9711
    @saitejagatadi9711 Рік тому

    Oh Python!
    I learned Python and then learned Java and now I am a Javascript dev :) :)
    Now looks like I need to go back ? LOL

  • @null1203
    @null1203 Рік тому

    Esse vídeo na hora certa, é bizarro do nada estar entendendo tudo em inglês sem legenda XD

  • @javierguadalupe9543
    @javierguadalupe9543 6 місяців тому +1

    It could be longer but not clearer

  • @Starkiller942
    @Starkiller942 Рік тому

    Python finally 🥹

  • @tonyblowbargeman2202
    @tonyblowbargeman2202 7 днів тому

    Johnson Kenneth Rodriguez Christopher Johnson Matthew

  • @RIDGELzraizaa
    @RIDGELzraizaa 16 днів тому

    Davis Helen Garcia Scott Taylor Jennifer

  • @LydiaKarle-s4w
    @LydiaKarle-s4w 17 днів тому

    Gonzalez Daniel Martinez Dorothy Rodriguez Larry

  • @KatteCatherine-m2n
    @KatteCatherine-m2n 11 днів тому

    Jaleel Port

  • @sparklydavid
    @sparklydavid 6 місяців тому

  • @johnspivack
    @johnspivack 7 місяців тому

    What an awful mess this 'getting started in VSCode' really is.
    The majority of the books and videos on Python try to get us to use VSCode, but VSCODE is impossibly clumsy and confusing. It is also very unclear to people who don't have experience what all the options we have to navigate through are doing and why they are necessary.
    Maybe this is due to Microsoft's monopoly power. They are just forcing a lousy, overcomplex and over-engineered products on defenseless users.
    The alternatives aren't great but minimally acceptable. Jupyter notebooks is workable though clumsy. PyCharm is awkward and still overcomplicated but a day vs night improvement over VSCode.

  • @EircWong
    @EircWong Рік тому

    tks

  • @unicorn_and_colours9262
    @unicorn_and_colours9262 3 місяці тому

    NAO AJUYDOUY

  • @soumadip_banerjee
    @soumadip_banerjee Рік тому +23

    Whenever Mr.Gray's vid comes out! I hit the like! ❤️

  • @TeamLMAO.
    @TeamLMAO. 5 днів тому

    when i try to run the py command its saying bash: py: command not found what should i do and im on windows

  • @maleeshamevan
    @maleeshamevan Рік тому

    thankyou

  • @PIKACHUHraje
    @PIKACHUHraje 5 місяців тому +2

    Hello, I´m begginer at programming and I want to learn how to code in Python. But when I type in the "cmd" command "py -3 --version" It just says "'py' is not recognized as an internal or external command,
    operable program or batch file." and I don´t know how to fix it. Any advice please?

    • @nick11jl
      @nick11jl 3 місяці тому

      same issue here, i have 0 idea what to do

    • @kratosrenascitur7652
      @kratosrenascitur7652 Місяць тому

      @@nick11jl try the python3 instead