Python Full Course for Beginners | Complete All-in-One Tutorial | 9 Hours

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

КОМЕНТАРІ •

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

    💡 Chapter 2 UPDATE: The latest versions of VS Code no longer support the auto-formatting I demonstrated. That said, I did the research, and if you want this formatting behavior, I show you how to get it back here: www.davegray.codes/posts/how-to-auto-format-unwanted-python-line-indents

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

      was looking for solution. at last got it. Thanks Dave

    • @big-jo89
      @big-jo89 11 місяців тому

      @@satthiarasanthanikasalam4673
      but technically it's not a good one because you will have to roll back to an older version of VS-code 😐

    • @User.2024.1
      @User.2024.1 10 місяців тому

      I think Python class can be taught best in PyCharm, it's free just like VS Code, but it's OK, I can still use PyCharm for this course on my side. VS Code is not really an IDE, it's a text editor that trying to be everything and that is not good. I use IntelliJ for Java, PyCharm for Python, and VS Code for JS/TS.

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

      😊fz

    • @badbadleroybrown650
      @badbadleroybrown650 10 місяців тому +3

      I should have looked at the comments a while ago! smh About to try this now. I thought it was something I was doing wrong. I have been troubleshooting this for weeks lol

  • @Vincent_12770
    @Vincent_12770 Рік тому +139

    @dave Thanks man ,,how i wish i could find a better way to appreciate you....Yesterday i was in an interview and i managed to secure a position i'll be starting my new job as a junior frontend engineer 1st August 2023,,How i wish it could be posible for me to attach the job letter here ,this is all because of you, I've never stepped in any college,university or even college,,This journey started March this Year..Thanks And be blessed

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

      Congratulations! 🎉 This is what I like to hear!

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

      @businessclass8185 sow a financial seed into Dave's life. Dave gives out so much good free training that others charge. Let's encourage him by sowing financial seeds when we get jobs

    • @spinj3307
      @spinj3307 Рік тому +5

      Thanks for the motivation and congratulations 🎉

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

    • @xyzxyz6095
      @xyzxyz6095 9 місяців тому +3

      By giving him a few hundred dollars for example, it's a good start 😊

  • @tmaster928
    @tmaster928 Рік тому +62

    Thank you Dave! I compleated your HTML and CSS courses and they were fantastic! This Python course also looks great! Now we just need a Django course for web developing to wrap all theese courses together! :D Keep up the great work!

  • @User.2024.1
    @User.2024.1 11 місяців тому +12

    I am ditching Mosh for Gray. My new favorite UA-cam instructor who not only explains syntax thoroughly but also with live real projects and examples. This is the best Free Python course on the entire internet so far. Keep it coming. Everyone talks about React, hope to see the Angular series from you. Thanks.

    • @sophiek.6944
      @sophiek.6944 10 місяців тому

      who is Gary?

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

      Glad you escaped that Mosh guy HAHAHA. First time I saw the way he thought 5 years ago, I immediately knew I wouldn't learn as efficiently as I would've liked.

    • @User.2024.1
      @User.2024.1 10 місяців тому

      @@sophiek.6944 sorry it was a typo, I meant to say 'Gray'.

  • @HizBela_16
    @HizBela_16 Рік тому +33

    Dave, the Python course is exactly what I have been waiting for! Well done!

  • @SteveH-TN
    @SteveH-TN Місяць тому +4

    Appreciate you sharing this course. I.’m a 75 year old retired Software / Systems Engineer retired in 20014. However I’m an independent learner.

  • @saadislam2851
    @saadislam2851 11 місяців тому +7

    Best python course indeed. This guy explains every topic elaborately.

  • @AbaasAliMohamedAugust2023
    @AbaasAliMohamedAugust2023 Рік тому +15

    It’s 2:25pm, Tuesday, 1st/August/2023; and I’m beginning this great course. I took html and css and know I decided to take this course before I go to your JavaScript course.
    THANKS TEACHER DAVE GRAY. YOU’RE TEACHING SO WELL.

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

      did u finish?

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

      ​@@Iinustechtips good question

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

    In case if anyone is wondering, "Menu" occupies 4 characters, and the rest of the available characters (20 - 4 = 16), are taken by the "=" character. You can count the "=" to confirm this.

  • @LovelyShadesYT
    @LovelyShadesYT 8 місяців тому +11

    i sorta have just been breezing past my college textbooks and not really retaining anything. Doing this walkthrough with you on a language I havent even learned yet was so refreshing. My school doesnt use VS code and decided to teach us Java and C. Thank you for making this tutorial introducing us to a popular language and code editor! This course was so nice though thank you for posting!

  • @AlexPo-dd1ll
    @AlexPo-dd1ll 8 місяців тому +4

    Thanks Dave for sharing such a popular programming language for free. Million thanks Dave.

  • @massivejester
    @massivejester Рік тому +9

    I have only just begun watching this, installing VS Code and so on. Your explanation is SO clear. Great work!

  • @Salah-YT
    @Salah-YT 11 місяців тому +9

    Thank you, Dave! I've just completed this course and will soon start Django from your channel. Your teachings have been invaluable. Wishing you a fantastic life ahead. Thank you again! 🙂

  • @tigerscott2966
    @tigerscott2966 Рік тому +5

    I am glad this channel showed up...
    I already have Python and it's in POP OS on a mid range laptop...thanks

  • @MuzammilKamran-w9p
    @MuzammilKamran-w9p 3 місяці тому +2

    In chapter 16 Arcade code:
    Line 17: RETURN restarts the game.
    I used CONTINUE to fix my issue as it continues the loop.
    Day 18: 05:53:29 Lambdas and High Order Functions done.

  • @sweatington8423
    @sweatington8423 9 місяців тому +1

    This Dave guy is one of the best course creators on youtube. No cap.

  • @jackweaver5840
    @jackweaver5840 Рік тому +13

    I think this is one of the best Python tutorials that I come across - you covered everything important and dove deep into it - Appreciate it! - I would love if you could make a Django course with your hands on teaching style.

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

    Amazing content. Thanks
    Just one tip for all the students, Use below code at the beginning of all lessons you're going to follow side by side. it will clear the output terminal everytime runs the programs, so you don't get to see the previous outputs again and again.
    import os
    os.system('clear') # Linux
    os.system('cls') # Windows

  • @ggshuo647
    @ggshuo647 11 днів тому

    Thank you Dave! This is really a amazing course! You specified everything so distinctly, and there is basically no murmur or hesitation when you talk, so you definitely prepared all of those codes and sentences in advance. That's absolutely a hard and time-consuming work, thank you again for doing all this, we really benefit a lot from your work! And I will no doubt go back and support you once I get my job and salary, wait for me! Haha

  • @iwandamiri1002
    @iwandamiri1002 Рік тому +12

    This is a real deal, you blow my mind away. What an amazing demonstration we all have been waiting for. Thank you, Dave.

  • @SeeLight222
    @SeeLight222 10 місяців тому +2

    This 9 hour long course is superb. Thank you very much, Dave!!!!!!!!!!!!!!!💯

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

    Literally the best teacher Ive ever had the honor to learn from. Thanks for sharing your knowledge for free with us all

  • @jojomurphy-qw2vq
    @jojomurphy-qw2vq Рік тому

    Thanks!

  • @tuckerwebb5336
    @tuckerwebb5336 10 місяців тому +2

    This is incredible, thank you so much for doing this for the community. You rock Dave!

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

    Studied for 8 hours straight watching the video and learned a lot. Thank You .

  • @MK-yg7zf
    @MK-yg7zf 4 місяці тому

    01:30:58: rp.py was giving me an error and was only printing my choice. The problem was with sys.exit call: sys.exit("You must enter 1, 2 or 3.")
    When you use sys.exit(), it immediately terminates the program. This means that the code after the sys.exit() call won't be executed.
    So the correct order is:
    print("You must enter 1, 2 or 3.")
    sys.exit()

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

    I finally understand the usage and meaning of "__name__ " after this tutorial! Thanks! ( timestamp around 4:50:00)

  • @SoloPython-hg1tn
    @SoloPython-hg1tn 11 місяців тому

    rock scissors paper game
    1:21:58 1stpart
    2:59:03 2nd part
    3:29:39 3rd part
    3:52:18 4th part
    4:08:40 5th part
    4:34:49 6th part
    4:54:12 7th part
    5:08:03 8th part
    new

  • @ericstocker6902
    @ericstocker6902 2 місяці тому +1

    I spent more than 9 hours just on chapter 1. Windows 10 with defender real-time turned on was preventing the correct install. Finally found how to disable real time and defender reinstalled and then it started working.

  • @MuhammadAayan-mo8vk
    @MuhammadAayan-mo8vk 3 місяці тому +13

    I am 12 year old and I can understand python just because of you . Thanks sir💫

    • @jonygamingengusa1660
      @jonygamingengusa1660 9 днів тому

      Now learn the bible or any other book. Youre religion is fake muhammad

  • @Miko-om6ez
    @Miko-om6ez 11 місяців тому +1

    you are one of the best programming lang teacher out in the youtube community keep up the good work so that we can all learn

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

    Thanks a ton Dave! I've looked at a lot of different beginner tutorials, but none of them were as easy to understand and clear as yours. The learning process for me was very fluid and easy. Keep it up! :D

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

    This course is excellent. After having followed along for seven hours, I have to thank you again for this wonderful instruction.

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

    In chapter 5(user input),
    you have used playerchoice and computerchoice(which are strings) in if else statements, this way the user never wins, you have to use player and computer in if else(instead of playerchoice and computerchoice) so they are taken as int and the game would work properly

  • @Human_Enthusiast
    @Human_Enthusiast 13 днів тому

    Thanks for this! I learned fundamental python in 2018 but I haven't touched it since so I have to re-learn how everything is organized. It's maddening that so much of how it works has changed. No { } to close in functions, no semicolons, plain text rather than function names for operaters (i.e. elseif(outcome1, outcome2, var3 > var4); is replaced with outcome1 if var3 > var4 else outcome2. I can see how it's maybe more intuitive now for a new programmer but I always preferred how python was very straightforward about what was going on under the hood. Plus you don't even need to define the data type of your variables anymore, what is this place???

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

    the details and explanation the software has helped to understand the program. you are a very good teacher! thank you.

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

    Hi Dave, 24:50 I am using mac os and I have already installed python extension, but it does not provide debug function.

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

    thank you for the well described tutorial, you have the right answers everytime a question pops up in my mind about the subject at hand

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

    I suggest anyone who first see the whole video to review it many times, and see how Dave Gray is great!
    This will solve all your python programming skill issues.

  • @createdbyoliver
    @createdbyoliver 9 місяців тому +2

    Day 1: 00:00 - 43:10 - Starting off slowly, playing around with the line and print commands, and if/else statements.
    Dar 2: 43:10 - 1:20:12 - Big step from the previous chapters, didn't have much time today, but still learned a lot from chapter 4.
    Day 3: 1:20:12 - 2:13:45 - Getting the hang of the basics I think, watched another tut of a quiz game as well, some things are difficult to remember tho, but we keep trying.
    Day 4: 2:13:45 - 3:05:48 - Dicts & Loops, this helped a lot. Also completed two beginner Python modules on Microsoft Learn, still find Python confusing tho.
    Day 5: 3:05:48 - 3:37:55 - Not much time today, but now got notes about functions and recursions.

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

    Thank you Dave!
    Your wonderful teacher!

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

      yes you have courses in udema i would like to buy them a token of thanks you explain very well

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

    In the operators section if you describe and, or & not like the and or & not gates, It will be much easier to understand like True=1
    False=0
    and means multiplication and Or means addition, and Not is just the opposite.
    But I learnt alot from your courses .A lot of free knowledge. It is knowledge is useless when it isn't spread. Your knowledge is indeed useful .You are indeed a great teacher.

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

    The best python tutorial for the beginner as well as intermediate learners. Thank you so much. You rock.

  • @JhonatanHenriqueLope
    @JhonatanHenriqueLope 11 місяців тому +1

    Once again, I feel nothing but love. Thank you for the wonderful content, Mr. Dave.
    Knowledge is power.

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

    Finally completed it , it took about 2 weeks 🎉🎉😢 thank u so much dave, u made this a lot simple for me and i've found a new found interest in python.

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

    Man You are so didactic,wish I had found this course before, I've had some other good ones on UA-cam but you are by far more didactic than any other, thanks man

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

    I have been waiting for the python course on one video and here it is thanks Dave

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

    5:36:00 VSCode1.91.1 (mac) does not reformat lambda functions (at least for me)

  • @Good-boy-y8y
    @Good-boy-y8y 6 місяців тому +1

    sir dave gray , you have great teaching skills and im learning at the age of 14, hope to be a python programer in some time . ive already watched an hour and watch ten , fifteen minutes a day and 10 minutes practice of what i watch .

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

      You can do it!

    • @Good-boy-y8y
      @Good-boy-y8y 6 місяців тому

      @@DaveGrayTeachesCode thanks!!!!!!

    • @Good-boy-y8y
      @Good-boy-y8y 6 місяців тому +1

      @@DaveGrayTeachesCode thanks, by the way , where are you from and what is your age sir?????

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

    You are awesome, i learned nodejs from you, now i am here again to learn python. I cant appreciate you enough for the good work you do. ❤

  • @khaanrepair369
    @khaanrepair369 9 місяців тому

    Dank uw wel meneer 👏👏👏 deeply appreciated🙌🌺🌺🌺

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

    Hi, in 2:55:02, in the loop/range example, when does the system go to the else statement and print "Glad It's over"? We've defined a range of numbers, right? so how/what causes the system go to the else statement?

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

    Thanks Dave! At 55:00 when saving the data type in Multiple lines: When I Save the file to run it it auto corrects and removes the single quotes and backslashes and does not run. Suggestions?

  • @alan-overthenet
    @alan-overthenet 6 місяців тому

    Thanks very much Dave for your excellent content and continued encouragement. I have no idea what I am going to do with Python, but you make learning fun :)
    Have a good day all.

  • @John-eq5cd
    @John-eq5cd 9 місяців тому

    A minor question/comment on Chapter 16: Challenges...
    My understanding is that a parameter or variable in a parent function is available to all child functions. If we want to change that parameter or variable we have to add the line 'nonlocal [parameter name]' in the child function.
    If that is the case do we need to write 'nonlocal name' when we are not changing name, simply using it?
    This is what I noticed in the guess_number.py code.

  • @Poohb3ar117.
    @Poohb3ar117. 9 місяців тому

    you sir are a life saver, Its hard for me to sit and listen to videos but you are easy to understand and had me hooked right away thank you :) !

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

    If I would make a suggestion, it would be better if you had a clean install of everything, so that we can follow along.
    For example, I'm used to Eclipse environment, and it's my second time trying to learn to use Visual Studio, and you have already a project created, and I'm not sure how to have that LESSON01, I guess I'll have first to create a folder, or a project, but it would help if you would do that together.

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 11 місяців тому

    Awesome course, but It's apparent that Python is your next language therefore you put parentheses where they don't need to be,
    1. unpack tuples without parentheses --> one, two, *hey = (1, 2, 3, 4, 5)
    2. IF without parentheses --> if num >= 9: return num + 1
    These are just aesthetic little things that don't affect the performance of the code, but a pythonist will catch them 🧐😅😉
    Thanks for this course and even more for Django 👌

  • @CristianAndresAlvarezJaramillo
    @CristianAndresAlvarezJaramillo 9 місяців тому

    El mejor profesor que he visto, eres un genio Dave y lo mejor de todo un profe carismatico. Thank you very much.

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

    Great teacher out here. Thanks...

  • @_MoshikoAz_
    @_MoshikoAz_ Рік тому +10

    This is a master piece, thank you Dave 💪

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

    Great job here, I learned a lot from this.

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

    thanx alot for compiling the tutorials. it helps alot.

  • @Vivi7893-hu6rq
    @Vivi7893-hu6rq 8 місяців тому

    During lesson 9, VSC told me to use "is instance()" instead of "type()" @3:12:00

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

    good, but at 1:04:38, jumped right into functions and arguments (passing values), without actually going into what are functions first. Might not be too easy for a complete beginner.

  • @MehediHasan-dw9kc
    @MehediHasan-dw9kc 10 місяців тому

    hello sir
    I am from Bangladesh, your videos are very helpful. A lot of love for you from Bangladesh.❤

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

    on the lines str(RPS(player)).replace('RPS.', ''). etc and
    str(RPS(computer)).replace('RPS.', ''). etc, on lesson 10 i think, you could say:
    RPS(player).name and RPS(computer).name for short end you'd get the same result

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

    24:25: Hi, Dave, the automatic indention does not work. I have already installed the python extension.

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

    so I guess, closure is when you are modifying a variable from the parent function but still want to have access to it because you want to use the nested function again and the nested function needs to have the original value of the variable that was set in the parent function. Because if we don't use closure the value of the variable in the parent function will permanently change

  • @AryanKanumuri
    @AryanKanumuri 9 місяців тому

    hey can someone help me, at 13:05 , when i type "py hello.py" it says no such file or directory even though i saved it as .py and a python file

  • @jojomurphy-qw2vq
    @jojomurphy-qw2vq Рік тому

    Hi Dave, At timestamp 00:24:07 Python doesn't correct the indentation of the string. I had already installed the extension package you suggested. I turned "auto save" ON, I also tried "python > formatting:" and it is in "auto / default" (there is no "auto 8".

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

      There is a note about the formatting change in VS code in the description of the video.

    • @jojomurphy-qw2vq
      @jojomurphy-qw2vq Рік тому

      Tried that, no luck@@DaveGrayTeachesCode

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

    What a great tutorial, much appreciated👍👍👍

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

    Love the speed of the teaching. I’m coming from JS and this is perfect for determining if it’s about the same as what I already know or if I need to take notes on the differences. I’ll be looking into your other tutorials after I finish Python. Thanks for the generous lessons!

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

    OMG - I found just getting started so complicated! Wouldn’t using something like Replit be easier for everyone to get up and running in just a few minutes? HNY Dave 🥳. Cheers, Michael 🇦🇺

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

      Better to learn something you will work with on the job than using something like Replit even though you could use it if you want to.

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

    I want to share another knowledge about the formatter:
    1. Install autopep8
    2. Make this as the default auto formatter.
    in your settings.json
    "[python]": {
    "editor.defaultFormatter": "ms-python.autopep8",
    "editor.formatOnSave": true,
    },
    It works as of July 25 2024.

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

    Thanks Dave, it was fantastic journey for the beginner :)

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

    Starting my Journey to Python. New Beginning,

  • @carmenherbert3023
    @carmenherbert3023 18 днів тому

    Hi, I have problems with import random. The first time we created the rock paper scissors game it worked, but thereafter none of the next games worked saying syntax error and random module not recognized. What can I do? Thanks

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

    26:08 im not getting this option of python>formatting:provider can anyone resolve and if i save also the indentation error is not getting fixed

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

      VS Code has updated and changed a few things. New directions: code.visualstudio.com/docs/python/formatting

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

      I had the same problem,but u can still fix the issue use black formatter extension instead and then go to setting in the json file put this lines of code
      {
      "workbench.colorTheme": "Default Dark Modern",
      "editor.codeActionsOnSave": {},
      "editor.formatOnSave": true,
      "[python]": {
      "editor.formatOnSave": true,
      "editor.defaultFormatter": "ms-python.black-formatter",
      "editor.codeActionsOnSave": {
      "source.organizeImports": true
      }
      }
      }

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

      @@quietcorner5989 {
      "workbench.colorTheme": "Default Dark Modern",
      "editor.codeActionsOnSave": {},
      "editor.formatOnSave": true,
      "[python]": {
      "editor.formatOnSave": true,
      "editor.defaultFormatter": "ms-python.autopep8",
      "editor.codeActionsOnSave": {
      "source.organizeImports": true
      }
      }
      }

    • @dr.drakon3928
      @dr.drakon3928 Рік тому

      @@quietcorner5989 tried this but not working. I have tried autopep8 & Black Formatting both but neither of these working. Not able to send import command at the top automatically after save nor formatting is working. Did it worked for you?

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

    David please tell your students that source is not a cmd for the people using powershell terminal environment

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

    i'm learning python for the first time, and im starting this course today. im excited to learn, thank you for making these materials available.

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

    On your terminal screen on the far right, there is a column of square boxes with a '>' in them. My terminal has them, too. Is there a way to remove them and not inject them so that only the terminal is shown? Thanks.

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

    This tutorial should have been ranked at the leading position among the most Python courses on UA-cam.

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

    Hey dave hope you are doing good ,my question in 3:24 (recursive function) why we had to use the return key word for the function to return the value 10 ,we already have the retun key word inside the if statement so it would return num+1 which is 10 and it ends the function immediatly and the final returned value which is 10 would be stored inside the variable mynewtotal so as soon as we print it we should get 10 in the terminal ,but it wasn't the case it was none instead of 10 I didn't get that part please if you could tell why we have to add a second return key word for the function (return add_one(total)!!!?

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

      Ok, your link went to 3 mins 24 secs but you meant 3hrs, 24 mins. Oh, goodness. He used totally unnecessary brackets in the if condition, very unpythonic. Anyway, let's forgive him but jeez...
      Anyway, you ask, why the return?
      The only way to get something out of a function is to return. Otherwise it's trapped in it. This is called "local scope" and it's a very good thing. It means your variables in one function don't trigger in another or anything else outside that function. You can imagine in a big project this would become a nightmare. So, even to get something from your function back into your function needs a return. That's because the name of your function is outside the scope of the interior of your function. The indent is the key. Return is like "go up an indent", I've never thought about it that way before but yeah, it's basically true.
      So, your function returns a called function into the outer scope which is able to call the function again. Without it, it would look for a function within the scope of the function (a nested function) and not find one.
      You can have nested functions btw, but that's advanced.

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

      @@davidmurphy563​​⁠thank you ,I actually forgot about the issue 😅 I need to go back check again what was the issue because it’s been 1 month now and get to you back see your response if it makes sense ,thanks bro 😊

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

    Hi Dave, thanks for the video, its really clear and concise, but I have a quick question, in lesson 12 at about 4 hrs 9 mins where you copy all the code and indent it forward, you use Shift and Tab key, please what else did you click, I'm finding it hard to align my code. Thanks.

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

    HELP!!
    Stuck at the end of chapter 2! I cannot get autopep8 to work. I couldn't find it in settings in the same way as here, I added the extension and I have it set as default but it won't auto format, whether using ctrl+s or right-clicking and selecting 'format document'.

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

      Seems like they have changed the settings with an update. The documentation shows us the way forward: code.visualstudio.com/docs/python/formatting

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

      @@DaveGrayTeachesCodeThank you Dave, great job you're doing!

  • @hkhsm359
    @hkhsm359 Рік тому +4

    Thank so much Dave.
    That's amazing course.
    I loved and learned a lot.

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

    I'm at 5:20 and I got stuck because after installing the python extension and doing Ctrl+shift+P and pressing > Python Select Interpreter it gives me an error saying command 'python.setinterpreter' not found. I tried uninstalling reinstalling and restarting VSC but to no avail. even went into the user/.vscode/extensions area and there are no files for python in it either. Anyone know how to fix this?

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

      Had the same issue, Uninstall and reinstall but make sure you check the two boxes (admin and path) and it will work also the new version you have to put Python -V for version

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

    The formatting part, I did configure the "format on save", "format on save mode"=file, and the "python > formatting", but the control+s didn't fixed the extra spaces.

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

      I uninstalled everything, cleaned up any older settings on "AppData\Roaming\Code" and still didn't work the of indentation, the rest of formatting works (no space between elements, for example.

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

      Same issue. The formatting on save works fine except indentation. Have you found a solution?@@echofloripa

    • @Kreiger81
      @Kreiger81 11 місяців тому +1

      @@echofloripa Did you ever fix it? Im running into the same issue.

    • @echofloripa
      @echofloripa 11 місяців тому

      @@Kreiger81 wow, it's been a while, I actually switch to Dart/Flutter, and have not paying much attention to the issue 😁

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

    Hi Dave, thanks for all you do for us :) any hint about what we can expect next?

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

    I couldn't get the autosave function working on the current version of python (3.11.8) but after installing the autopep8 formatter it worked. You may also need to install some additional formatting 'tools'

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

    The lessons are fantastic,but being a beginner to programming,I
    would suggest to make it easy to rewind the lessons with an option to forward and backward for a period of 10 seconds.It would do a lot of good to us who are not English speaking natives

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

    Finally❤❤❤Daves channel is the best channel. Next will be NEXTJS 13 compilation.
    #lets_learn_together
    #dave_is_the_best

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

    Thanks bro from Uzbekistan !

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

    Dave I have big problems getting autopep8 to work. I'm sure I did the right settings, however it's not working. I reinstalled VS CODE 3 times.

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

    6:50 my terminal looks different, from top I have "PS C:\Users\my name>" written with grey letter, I want to write under it and I don't know how, when I click enter the text from the upper line just repeats itself and I have:
    "PS C:\Users\my name>
    PS C:\Users\my name>"
    any help ?

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

      The PS indicates you are using the PowerShell terminal. When you press enter as you described, it just goes down one line and gives you the same prompt. It is waiting for you to enter something.

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

      @@DaveGrayTeachesCode 6:50 I have the same issue, on command prompt terminal i get the same prompt when pressing enter. I get the message "'py' is not recognized as an internal or external command, operable program or batch file." when trying to verify the python installation. What do I do?

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

    My gosh, this gold!!! ty u so much!!

  • @DiannaHunt-fz9tc
    @DiannaHunt-fz9tc 9 місяців тому

    On your terminal screen on the far right, there is a column of square boxes with a '>' in them. My terminal has them, too. Is there a way to remove them and not inject them so that only the terminal is shown? Thanks.

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

    This is just beautiful!

  • @adamlk100
    @adamlk100 Місяць тому +1

    YOU ROCK!!