Lec 2 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ส.ค. 2009
  • Lecture 2: Operators and operands; statements; branching, conditionals, and iteration
    Instructors: Prof. Eric Grimson, Prof. John Guttag
    View the complete course at: ocw.mit.edu/6-00F08
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu

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

  • @043mehdi
    @043mehdi 5 ปีที่แล้ว +124

    Had no idea during 2009 that MIT was uploading there class lectures like this. All I did during 2009 was watching music videos in youtube.

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

    this is so cool, I am taking MIT computer science lectures for free. love this era. good class sir.

    • @dukiwave
      @dukiwave 6 ปีที่แล้ว +4

      Don't be rude.

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

      @J W Calm down.

    • @harshvaghanii
      @harshvaghanii 4 ปีที่แล้ว +6

      I dreamt about studying in mit see now I'm a student of mit

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

      @@harshvaghanii hello. Me too.

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

      @@harshvaghanii Me too🤗

  • @getellied
    @getellied 5 ปีที่แล้ว +194

    Absolutely love this professor's method of teaching! It is very well explained! (As I would expect from an MIT professor.)
    Also, thank you, MIT, for the free knowledge. It is very important!
    Just as an FYI, these lectures feature older versions of Python, so there are a couple of differences (as far as what I can think of right now and are plausible to what he is teaching): (BTW these only apply to Python, not all programming languages; each one have their own set of syntax rules.)
    - The '/' operator now provides real solutions (e.g. 9/5 is 1.8). It seems to convert the VARIABLE into float automatically - you can check that by assigning a division to a variable (as an example, [value = 9/5]) then typing the command [type(variable)] (in my case, [type(value)]) and it will give out "float".
    It will not do that, however, if you use the operator "//", which is an integer division - the variable will be set as the int type (integer);
    - You CANNOT compare a string with a number anymore: it now gives out the expected TypeError;
    - Print statement goes with parenthesis now. Should be [print('statement')], not [print 'statement'] - it will give out SyntaxError without the parenthesis.
    - 'raw_input()' has been changed to 'input()' and the original 'input()' does not exist anymore. Source with more details found on stackoverflow.
    - 'while' loops do not take parenthesis anymore - they are not needed. However, no error message will be given out (taking base from Python 3.7). This also applies to 'if' statements.
    Again, thank you MIT for the awesome lectures! And thank you, reader, for paying any attention to my comment! :)

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

      Thanks Daniel for updating us with new information.

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

      Thank you Daniel for very useful information 👍🏼

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

      So is learning the language in this course outdated ?

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

      @@theadel8591 TLDR: No, not at all! Most of what the course covers includes the key features newer versions still have as well.
      Python is such a nice language that, while the versions are different and there are improvements/modifications, the versions are similar enough that it is still an incredible course.
      However, very important to note that, depending on your usage, it is good that you learn both this version and newer ones - there are companies, as an example, that still uses Python 2 for their software.
      In any case, if you learn from this course, you'll find it is way easier to learn the differences later and it will not be hard to adapt your code.
      Hope this responded - if not, please comment again and I'll be sure to answer! :D

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

      @@getellied thanks Danielle, i’m now more confident in the time and effort I’ll put into this course.

  • @kxmode
    @kxmode 9 ปีที่แล้ว +86

    I like how this teacher is humble enough to admit a mistake

  • @caseriviera8331
    @caseriviera8331 4 ปีที่แล้ว +20

    So far I've found and have taken one entire course from the University of Toronto by Dr. Jordan Peterson and now working on the Harvard CS50 and this MIT 6.00 lecture; if a person doesn't educate themselves it's due to their own choice, the resources available now are limitless. You can ask all of my notebooks, I take notes for every class and ensure a good night's sleep after that lecture and lab, so far that's been my recipe for moving data from short term to long term memory. Thank you @MIT for making these available to the public, I'm truly grateful.

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

      how far along are you now? these videos are out of date. :(

    • @atlas.heart.O
      @atlas.heart.O ปีที่แล้ว

      Hey ? If you ever see that and still have them i would be happy to have your notes ! (And what about you now :)?)

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

      did you say you have notes? and do you use anki?

  • @elektrosoundwave
    @elektrosoundwave 10 ปีที่แล้ว +81

    Could you pass along my thanks to the professors and whoever came up with this idea. These videos are a Godsend for someone who has to repeat segments over and over again due to an extreme case of ADHD. I could not sit through an actual class and get this without my mind wandering across any and every other possible subject.

  • @shizyninjarocks
    @shizyninjarocks 8 ปีที่แล้ว +166

    Free education rocks!

    • @christoandries7117
      @christoandries7117 6 ปีที่แล้ว

      shizyninjarocks free power

    • @Colonies_Dev
      @Colonies_Dev 4 ปีที่แล้ว

      awesome but i wished they had better quality so i could read the code in full screen xD

    • @Ahuratum
      @Ahuratum 4 ปีที่แล้ว

      Amar Hajdarević yes, we are, but they received a highly accredited degree.....if they passed the class, that is.

  • @kaspa123321
    @kaspa123321 8 ปีที่แล้ว +138

    i swear this guy and john are like best friends. He refers to this guy every other minute lol

    • @12theunknown12
      @12theunknown12 7 ปีที่แล้ว +35

      plot twist, he's his imaginary friend.

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

      Johns like. He pays me to stay here. 😂

    • @Michael-xb5zq
      @Michael-xb5zq 2 ปีที่แล้ว +1

      theyre secret lovers

  • @indigoanon5483
    @indigoanon5483 10 ปีที่แล้ว +34

    “You blew 150k on an education you could have gotten for a $1.50 in late fees from the public library.” Good Will Hunting

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

      @@RandomTH-cam123 If everybody thought that was the sole benefit, these courses would not exist.

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

      That Will Hunting was one of the dumbest folks ever to be seen on the silver screen.

  • @JacklynCunningham
    @JacklynCunningham 9 ปีที่แล้ว +27

    I love these, it don't like my prof he's not very effective at teaching this stuff, i have no background in computer science and my first day my prof went into so much stuff and i have no idea what he was talking about but I'm learning alot from these videos!!

  • @natepowley
    @natepowley 6 ปีที่แล้ว +16

    7:05 you get to see JOHN, OMG HE IS A ACTUAL PERSON

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

      Somebody didn't fully watch lecture 1 ;) we saw him there too

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

    Thank you so much uploading these lectures for free. May God bless the MIT more and more. Prof. Eric Grimson is teaching great!! Loved it !!

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

    Professor Grimson is an "off the hook" orator. He breaks down programming in a way that allows even the thickest of students to understand the subject matter and make educated decisions. Kudos for teaching in Python. It is a powerful language but closest to "easy" that you can get in programming. Well done, Gents. Cheers.

  • @j0esene
    @j0esene 8 ปีที่แล้ว +23

    I'm new to programmin and i felt in love with Python the second i ran it, and i never tried to program before. But it was kinda hard to find a lecture or tutorial as good as this OCW. I always dreamed of e going to MIT, but being brazilian never helped, but now i can at least have a lil taste of it.

  • @AhmedHassan-cj8yi
    @AhmedHassan-cj8yi 5 ปีที่แล้ว +3

    I start college this fall and I am already being taught by an MIT professor on programming can’t get better than this.

  • @joeverzino
    @joeverzino 8 ปีที่แล้ว +4

    Your tutorials are absolutely excellent for beginners.

  • @aaronaaronaaron5922
    @aaronaaronaaron5922 6 ปีที่แล้ว +10

    Thanks to the MIT, Eric and John for this excelent course.

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

    Thank you for these VDO. It helps to undetstand more about coding and programing for me, a person does not know anything about coding,but only languages for my living. Please keep this good work on. I love this professor and his lecture.

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

    i love how he teaches some how he doesn't make the lecture boring

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

    Had to say thank you for these. They've been priceless to me.

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

    Thank you, Prof. Grimson and MIT for a great video.

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

    Loving these lectures and learning so much, like Eric says "while" like his safe word is whiskey in Hot Rod.

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

    10:54 They seem to have taken the feedback, since in Python 3.8 this is no longer possible; it will no longer assume you want to compare the value expressed by the string if the other parameter is not also a string. In other words: If both are numbers, or if both are strings, it WILL compare their value, but if one is a number and the other a string, it will throw an error message.

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

    Excellent professor. He explains everything with precision and clarity. I wish my programming professor was like this man. If you're having trouble try Bucky's tutorials for additional clarity. Definite subscribe.

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

    He has such a great way about laying things out logically so they are easy to understand.

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

    thank you for this MIT. Big kudos to you

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

    I am in college right now and am taking this class (of course not at MIT), these videos help sooooooo much. I am glad they started this.

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

    Thanks for this, everyone involved! I am currently on lecture 6 but I find it interesting how the number of views for each lecture goes down as the lecture number goes up.

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

    This is awesome!!!! Learning more here than semesters in "Online Colleges" Thank you for making this available!!!!

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

    definitely love his classes... How i hope i get to see whats in their handout

  • @86Calikidd
    @86Calikidd 6 ปีที่แล้ว +187

    No excuse for not expanding your mind nowadays.
    *fixed

  • @DrStoCazzo
    @DrStoCazzo 8 ปีที่แล้ว +22

    the power of being rewarded with a candy...underestimated thing XD

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

      Candy man candy man. Lol.

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

    i love this. if i were an older person taking this course and knowing that my ENTIRE FUTURE in programming, i would be too scared and fail. but because im a 7th grader in a very free-flowing home-school program in which watching TH-cam means my teacher is in LOVE with me, i get to pay attention, pause, play around with software in the middle of class and alot of other stuff.
    the only thing i dont love is that i cant ask HIM a question.

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

    i personally want to thank professor jim ericson for delivery such interesting lectures

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

    Thank you. I should have remembered that from intro to Linux. I definitely remembered how important attention to detail is with Linux.
    This open source education is probably the greatest discovery since the internet itself.

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

    Thank You for This quality Free education content, very much perseverated !

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

    I am enjoying these videos, they are a great way to learn more besides what I study already, goes great with what we are learning in my class

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

    great opportunity to watch fascinating lectures from a prestigious university.

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

    Again really appreciate the lectures.. guys much appreciated

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

    These lectures are really very good!

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

    Thanks Goodness for the subtitles, they really help. :)

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

    On a second note these videos are awesome! Thank You!

  • @victoriaindigo
    @victoriaindigo 13 ปีที่แล้ว

    It's so sweet how he throws out candy. I bet it encourages class participation!

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

    2/24 . Let's see how far I can go :P . Learning this to study Machine Learning.

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

      great, going to learn machine learning myself too! But isn't maths more important for that purpose? I am not sure

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

      I am going to see videos on Linear algebra by Gilbert Strang and Harvard Statistics 110 video series too during the winter break. I think these are the most important math topics for ML.

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

      How is the Machine Learning learning(lol) going?

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

      so did it happen?

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

      @Aditya how far along are you now?

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

    Props to MIT for making this free. All human knowledge should be free.

  • @Dabket3araB
    @Dabket3araB 9 ปีที่แล้ว +114

    I was giving myself candy every time he asked a question and I was able to answer it. Hersey's kisses with almonds to be clear.

    • @JoshuaWorleyWindle
      @JoshuaWorleyWindle 6 ปีที่แล้ว

      lol

    • @vanguard4065
      @vanguard4065 6 ปีที่แล้ว

      no almonds!!!

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

      I'm stealing your idea only using popcorn. White cheddar to be clear.

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

    Thank you for the amazing lectures.
    In the newer version (3.6.0) to check an integer if it's even or odd I did the following:
    x=15
    if (x%2==0):
    print ('Even')
    else: print ('Odd')

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

      So true.
      I did it like in the video and I got even has result .. so i believe doesn't work the same way on newer versions o python

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

      Thank you. I was really scratching my head over this since (x/2) * 2 can work for both odd and even numbers.

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

    after i watched this video Operators and operands; statements; branching, conditionals, and iteration, my insight is very open because the video is very good to give information

  • @pablocau3792
    @pablocau3792 5 ปีที่แล้ว

    OMG you actually made the video better!! God bless you!!!

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

    Views drop off each proceeding lecture. That shows the extent to which some are willing to commit to a path.

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

      lmao true! They can't appreciate the beauty of free education

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

      A phenomenal discovery.. please have your findings published.

    • @lalaithan
      @lalaithan 5 ปีที่แล้ว +17

      Self-discipline is no easy thing. Hard work pays off.

    • @DarthScosha
      @DarthScosha 5 ปีที่แล้ว +9

      This happens in real life at universities also. The first lectures are a deluge of people queuing 10 minutes early, eager for those doors to open. By mid term a third of the seats are empty and people are walking in 5 and 10 minutes late.

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

      ease off with the judgements. there could be a lot of reasons. they might have found better resources, schools, materials, etc. MIT's OCW isn't the only high quality resource available. or they could have moved to a new place where access to youtube or any OCW is restricted, they could have gotten killed etc.
      one thing's for sure tho - we don't know shit about them.

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

    Thank you so much MIT!

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

    Kudos to MIT for this course!

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

    Woe this is very amazing and interesting very intricate and dyammmmm it's free this is so thuro ! This is way better teaching that I have ever had the pleasure of listening to thankyou so much for the time and generosity involved in Hosting this lecture sorry I'm babbling out of amazement.

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

    Most important with employers are the following: 1) Can you follow a routine for long periods of time (years) ? 2.) Can you complete a task that you've started ? 3.) Can you work under the pressure of a schedule ? 4.) Can you work within the system, as opposed to doing it your own way? 5.)How do I know, BEFORE I hire you, that you have the skills you say you have? 6.) Is there some way I can verify that your skills have been tested ? 7.)

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

    the new IDLE has many new features that are not consistent with these lectures that might create some confusion... so guys you better watch yourselves out... for example (5/2) in the 1.4 shell version gives the number of multiples of 2 that fit in 5... in short it gives the first quotient.... but now in the latest shells, python provides the complete division like (5/2) gives 2.5.. but still these lectures are fantastic.... thanks to MIT OpenCourseWare

    • @espedale
      @espedale 5 ปีที่แล้ว

      Exactly. They made the change one year after this lecture was made, when Python updated from version 2 to version 3. Python 3.x now returns floats instead of integers.
      www.informit.com/articles/article.aspx?p=1439189

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

    Exccellent teachings professor! I love the way you rendered the "Recipe Comparison Initiative," per say...:) Nice work! I've some questions but I'll await till I get most of the videos completed in viewing then I'll kinda take it from there. Thanks so much for the videos!

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

    Awesome lecture. Detailed instructions followed by solid examples.

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

    when I saw it first I was really surprised beacuse it is a very good oportunitiy for the person who wants to improve himself

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

    really complicated but after a bit of research i understand more, what an excellent educational video, thanks +MIT OpenCourseWare

    • @mrnettek
      @mrnettek 5 ปีที่แล้ว

      It becomes way more complicated. Good luck.

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

    Python made a long way since this MIT class but there is still lots of useful information.

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

    All the reading im doing is not really helping but these videos are gold! thanks guys

  • @rickysteven1990
    @rickysteven1990 4 ปีที่แล้ว

    Rumour has it that John is a legend

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

    YaY - the video projection of the mac screen output shows up great!
    Thanks MIT - this lectures series is fantastic!

    • @MrPatrickDayKennedy
      @MrPatrickDayKennedy 9 ปีที่แล้ว

      Great question by one of the students - i was wonder what factored in to why 'a' > 'g' returns False, it's because the ASCII code for the symbol!
      Lotsa good stuff in here - I might need to watch it again. First tho, maybe time to start some of the associated lesson reading materials :)

    • @MrPatrickDayKennedy
      @MrPatrickDayKennedy 9 ปีที่แล้ว

      Hi Metaphysical Axiom,
      If you dig permaculture, are you familiar with the work of Dr. Elaine Ingham? She's awesome!

    • @MrPatrickDayKennedy
      @MrPatrickDayKennedy 9 ปีที่แล้ว

      Metaphysical Axiom,
      Here ya go:
      www.nofanj.org/LiteratureRetrieve.aspx?ID=104151

    • @MrPatrickDayKennedy
      @MrPatrickDayKennedy 9 ปีที่แล้ว

      Metaphysical Axiom, it's a great means to extend your compost economy. The microbiological analysis in the manual is excellent for dialing in your application (bacterial or fungal dominance). & best of all - it's so easy: bucket of water, bubbler pump and hose (big bubbles, fine bubbles chop up the biology), a mesh bag, some good compost & voila! As for application, the pressure of a four foot drop is enough to kill up to half the biology - a gentle meditative approach is good, or, if you are irrigating, just avoid right angles in the piping and use a diaphragm pump (instead of a rotary one). Generally, if your brew is frothy & smells like rich soil, you are good to go!
      :-D

    • @MrPatrickDayKennedy
      @MrPatrickDayKennedy 9 ปีที่แล้ว

      Note to self:
      en.wikibooks.org/wiki/Python_Programming

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

    Great videos for learning Python syntax. I like how the developers force you into a structured coding environment. :-)

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

    wow, I'm sure his IDLE shell said something like version 1.4 or something
    Nevertheless I am finding these lectures very interesting even if they are a few years old, it is amazing that there's resources like this available, not everyone's in a position where they can actually attend a University so it is really cool to have this available.
    Thanks

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

      Yeah, wish they could have some updated versions as we all know how fast computers are evolving, but good nevertheless.

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

      7XCOLE for this course that is mostly irrelevant, as these fundamental computation principles have remained largely unchanged. They are still a good basis to start from learning more contemporary techniques and languages. It is not a course about Python, remember?

    • @christoandries7117
      @christoandries7117 6 ปีที่แล้ว

      Ben W even University don't teach for beginners it wasn't a fun experience

  • @MattMcConaha
    @MattMcConaha 5 หลายเดือนก่อน +1

    RIP to the several million people who didn't make it to lecture 2

  • @zzzbrianxxx
    @zzzbrianxxx 12 ปีที่แล้ว

    Impressive catch at the end of the lecture. She noticed that there wouldn't be an infinite loop if x is negative, rather that it would skip the block of code and go to print y. That's MIT for ya. Very bright.

  • @MagnusJ568
    @MagnusJ568 9 ปีที่แล้ว

    This is very helpfull and i an really thankful for this sine im in middel school and have no optiks to lett this in school yet thank you

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

    Indeed an Awesome Lecture just like we had at Berkeley from Prof. Cummings!

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

    instead of doing str(10) with your number inside the parameters, you can also contain your number with back-ticks `10` and it will consider the number a string.

  • @phatsk8r420
    @phatsk8r420 13 ปีที่แล้ว

    UM... Wow! This is some sweet stuff right here... I cant believe I'm sitting in on an MIT CS lecture!!! AWEsOME!

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

    He is quite interesting teacher. Of course, lessons should be viewed several times. He is much more better that the next one, who were lazy even to learn what he is teaching (always looks to notes on next lessons). Will see, how these lessons will learn me Python.

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

    learning in 2022
    time to change careers. This is amazing

  • @lFataI1ty
    @lFataI1ty 6 ปีที่แล้ว

    damn I love how he switches to surround sound (usually 2 sec late) so we can hear the questions from student,
    but they speak so quietly it doesn't even matter. basically killing suicider

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

    Type discipline, that sums up why most coders, so called coders, need to take this course. It is more like a lot of bad drivers on the road with a driving license. You need to go back to basics to be reminded of the correct way of driving.

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

    49:21 it won't go into an infinite loop. The result will be 0 since the while loop is skipped because -4 is smaller than 0 and outputs the value of Y, which is 0.

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

    What a man he is. Wow. He is a God-Sent to teach.

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

    Yes, in Python 3.x it is flipped, to get 3/5 = 0 in Python 3, you have to use double forwards slash: Python 3: 3//5 = 0, Python 2: 3/5 = 0

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

    Well if u wanna specifically major in computer engineering from a 4 year university, it will require lots of math. You will be required to take calculus I, II, III, differential equations, and linear algebra. Trig is recommended to have been taken during high school, otherwise you'll do it at college and be a little behind. Engineering is a tough discipline. I'm a senior in electrical engineering, and shit aint exactly easy. If you want to complete your degree, u have to be passionate about it.

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

    Excellent material. Someone needs to get this man a keyboard and mouse.

  • @MegaAnonymousfreedom
    @MegaAnonymousfreedom 9 ปีที่แล้ว

    the first video and this one, so reminds me of programing in dos lol

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

    Great teachings on PYTHON

  • @gammakingTO
    @gammakingTO 6 ปีที่แล้ว

    This guy is a legend :D

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

    @krenuds the link above had the last bit of the url cut out, the full url is
    ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/download-course-materials/
    download the zip and the handouts are under each lecture.
    On another note, thank you MIT for this wonderful resource!!

  • @joeverzino
    @joeverzino 8 ปีที่แล้ว +4

    I believe the explanation that says 15 is stored in memory and three values point to it is in error. I have programmed in binary, assembler and all the way to ADA [BOO!].
    I believe there are 3 variables all containing the number 15. I would be interested in heraing your response response

  • @doctor1wagner
    @doctor1wagner 14 ปีที่แล้ว

    wow i love these

  • @alankritsrivastava1475
    @alankritsrivastava1475 6 ปีที่แล้ว

    In case you are using python 3, the expression:
    4>> 4>'a'
    Traceback (most recent call last):
    File "", line 1, in
    4>'a'
    TypeError: '>' not supported between instances of 'int' and 'str'

  • @scottvska
    @scottvska 13 ปีที่แล้ว

    This is very useful.

  • @maxgunn555
    @maxgunn555 12 ปีที่แล้ว

    @snappycapz comfort of home. ability to pause rewind and knowing more information is right around the corner.

  • @josuegisber8150
    @josuegisber8150 5 ปีที่แล้ว

    MIT is the best!

  • @KingKova7
    @KingKova7 12 ปีที่แล้ว

    I'm so into this

  • @anilbhattarai8661
    @anilbhattarai8661 5 ปีที่แล้ว

    >>> 'a' < 3

    Traceback (most recent call last):
    File "", line 1, in
    'a' < 3
    TypeError: '

  • @PankajKumar-ji1ig
    @PankajKumar-ji1ig 3 ปีที่แล้ว

    thank you so much

  • @sanketjadhav7270
    @sanketjadhav7270 7 ปีที่แล้ว

    Thank you.

  • @mikeg18
    @mikeg18 13 ปีที่แล้ว

    TY for the Video really helps with school :)

  • @AnkitRahate
    @AnkitRahate 14 ปีที่แล้ว

    MIT simply d best!!

  • @OZ1OS
    @OZ1OS 14 ปีที่แล้ว

    Just Great!

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

    In python, each indentation is 4 spaces. Sometimes tab can give you more or less than that. Try indenting 4 spaces.

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

    Wow, the first lecture had over 5 million views while this one only has less than 1 million presently.
    80% drop rate after first class is quite significant. I wonder how many finish?
    I wonder if I will?

  • @11McBdogs
    @11McBdogs 12 ปีที่แล้ว

    i love the internet. I can't pause and rewind the teacher to write notes when I'm in a classroom.