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

  Рет қаралды 1,220,080

MIT OpenCourseWare

MIT OpenCourseWare

Күн бұрын

Пікірлер: 741
@christianangulo5850
@christianangulo5850 8 жыл бұрын
this is so cool, I am taking MIT computer science lectures for free. love this era. good class sir.
@dukiwave
@dukiwave 7 жыл бұрын
Don't be rude.
@kevinzhang3313
@kevinzhang3313 5 жыл бұрын
@J W Calm down.
@harshvaghanii
@harshvaghanii 4 жыл бұрын
I dreamt about studying in mit see now I'm a student of mit
@frejustossou9910
@frejustossou9910 4 жыл бұрын
@@harshvaghanii hello. Me too.
@sleepingMonk57
@sleepingMonk57 4 жыл бұрын
@@harshvaghanii Me too🤗
@getellied
@getellied 5 жыл бұрын
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 жыл бұрын
Thanks Daniel for updating us with new information.
@imserdar
@imserdar 4 жыл бұрын
Thank you Daniel for very useful information 👍🏼
@theadel8591
@theadel8591 3 жыл бұрын
So is learning the language in this course outdated ?
@getellied
@getellied 3 жыл бұрын
@@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 жыл бұрын
@@getellied thanks Danielle, i’m now more confident in the time and effort I’ll put into this course.
@caseriviera8331
@caseriviera8331 4 жыл бұрын
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 4 жыл бұрын
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?
@kxmode
@kxmode 10 жыл бұрын
I like how this teacher is humble enough to admit a mistake
@elektrosoundwave
@elektrosoundwave 10 жыл бұрын
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.
@043mehdi
@043mehdi 6 жыл бұрын
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.
@coco-ongelzela
@coco-ongelzela 5 ай бұрын
We all did
@JacklynCunningham
@JacklynCunningham 9 жыл бұрын
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!!
@tjkoker
@tjkoker 4 жыл бұрын
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.
@kaspa123321
@kaspa123321 8 жыл бұрын
i swear this guy and john are like best friends. He refers to this guy every other minute lol
@12theunknown12
@12theunknown12 8 жыл бұрын
plot twist, he's his imaginary friend.
@ownSystem
@ownSystem 4 жыл бұрын
Johns like. He pays me to stay here. 😂
@Michael-xb5zq
@Michael-xb5zq 3 жыл бұрын
theyre secret lovers
@flipbooks56
@flipbooks56 11 жыл бұрын
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.)
@AhmedHassan-cj8yi
@AhmedHassan-cj8yi 5 жыл бұрын
I start college this fall and I am already being taught by an MIT professor on programming can’t get better than this.
@j0esene
@j0esene 8 жыл бұрын
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.
@anidude98
@anidude98 13 жыл бұрын
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 KZbin 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.
@Alisoncrafts15
@Alisoncrafts15 13 жыл бұрын
i love how he teaches some how he doesn't make the lecture boring
@shizyninjarocks
@shizyninjarocks 8 жыл бұрын
Free education rocks!
@christoandries7117
@christoandries7117 6 жыл бұрын
shizyninjarocks free power
@Colonies_Dev
@Colonies_Dev 5 жыл бұрын
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.
@gainup1
@gainup1 15 жыл бұрын
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.
@NorbuEbenezerTamang98
@NorbuEbenezerTamang98 4 жыл бұрын
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 !!
@bkroberts89
@bkroberts89 13 жыл бұрын
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.
@christalkarat
@christalkarat 11 жыл бұрын
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.
@cezariusus7595
@cezariusus7595 2 жыл бұрын
Props to MIT for making this free. All human knowledge should be free.
@aaronaaronaaron5922
@aaronaaronaaron5922 6 жыл бұрын
Thanks to the MIT, Eric and John for this excelent course.
@umeithou
@umeithou 15 жыл бұрын
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.
@boxpilot643
@boxpilot643 13 жыл бұрын
i personally want to thank professor jim ericson for delivery such interesting lectures
@kervensjasmin1508
@kervensjasmin1508 7 жыл бұрын
Views drop off each proceeding lecture. That shows the extent to which some are willing to commit to a path.
@CottonCookie
@CottonCookie 6 жыл бұрын
lmao true! They can't appreciate the beauty of free education
@phriesen
@phriesen 6 жыл бұрын
A phenomenal discovery.. please have your findings published.
@lalaithan
@lalaithan 5 жыл бұрын
Self-discipline is no easy thing. Hard work pays off.
@DarthScosha
@DarthScosha 5 жыл бұрын
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 4 жыл бұрын
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.
@chucksnelling9417
@chucksnelling9417 11 жыл бұрын
This is awesome!!!! Learning more here than semesters in "Online Colleges" Thank you for making this available!!!!
@setotitan
@setotitan 13 жыл бұрын
He has such a great way about laying things out logically so they are easy to understand.
@natepowley
@natepowley 6 жыл бұрын
7:05 you get to see JOHN, OMG HE IS A ACTUAL PERSON
@darylrobins4097
@darylrobins4097 4 жыл бұрын
Somebody didn't fully watch lecture 1 ;) we saw him there too
@joeverzino
@joeverzino 8 жыл бұрын
Your tutorials are absolutely excellent for beginners.
@indigoanon5483
@indigoanon5483 11 жыл бұрын
“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 4 жыл бұрын
@@RandomKZbin123 If everybody thought that was the sole benefit, these courses would not exist.
@TheSelfHelpTube
@TheSelfHelpTube 3 жыл бұрын
That Will Hunting was one of the dumbest folks ever to be seen on the silver screen.
@materialknight
@materialknight 4 жыл бұрын
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.
@86Calikidd
@86Calikidd 7 жыл бұрын
No excuse for not expanding your mind nowadays. *fixed
@silasmaurer7835
@silasmaurer7835 5 жыл бұрын
nowadays👍
@inezneal7258
@inezneal7258 2 жыл бұрын
Lol
@pkpkgr
@pkpkgr 14 жыл бұрын
great opportunity to watch fascinating lectures from a prestigious university.
@TheBaldhippy
@TheBaldhippy 14 жыл бұрын
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.
@imegatrone
@imegatrone 13 жыл бұрын
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
@KevinBond2663
@KevinBond2663 10 жыл бұрын
Thank you, Prof. Grimson and MIT for a great video.
@darylrobins4097
@darylrobins4097 4 жыл бұрын
Loving these lectures and learning so much, like Eric says "while" like his safe word is whiskey in Hot Rod.
@pratiktelang6082
@pratiktelang6082 6 жыл бұрын
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
@racorker
@racorker 8 жыл бұрын
thank you for this MIT. Big kudos to you
@michaelcoonce6412
@michaelcoonce6412 7 жыл бұрын
Had to say thank you for these. They've been priceless to me.
@kevinkiesel4937
@kevinkiesel4937 11 жыл бұрын
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
@cornelxbox25
@cornelxbox25 8 жыл бұрын
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 3 жыл бұрын
Thank you. I was really scratching my head over this since (x/2) * 2 can work for both odd and even numbers.
@rickysteven1990
@rickysteven1990 4 жыл бұрын
Rumour has it that John is a legend
@adityapasari2548
@adityapasari2548 8 жыл бұрын
2/24 . Let's see how far I can go :P . Learning this to study Machine Learning.
@jordantan2543
@jordantan2543 8 жыл бұрын
great, going to learn machine learning myself too! But isn't maths more important for that purpose? I am not sure
@adityapasari2548
@adityapasari2548 8 жыл бұрын
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 жыл бұрын
How is the Machine Learning learning(lol) going?
@TheRayll
@TheRayll 7 жыл бұрын
so did it happen?
@semtex6412
@semtex6412 4 жыл бұрын
@Aditya how far along are you now?
@labasl
@labasl 15 жыл бұрын
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.
@Dabket3araB
@Dabket3araB 9 жыл бұрын
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 7 жыл бұрын
lol
@vanguard4065
@vanguard4065 6 жыл бұрын
no almonds!!!
@lalaithan
@lalaithan 5 жыл бұрын
I'm stealing your idea only using popcorn. White cheddar to be clear.
@mattelabsg7813
@mattelabsg7813 6 жыл бұрын
definitely love his classes... How i hope i get to see whats in their handout
@victoriaindigo
@victoriaindigo 13 жыл бұрын
It's so sweet how he throws out candy. I bet it encourages class participation!
@coolioschmoolio1
@coolioschmoolio1 12 жыл бұрын
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.
@GoredGored
@GoredGored 4 жыл бұрын
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.
@raserapps8230
@raserapps8230 8 жыл бұрын
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 жыл бұрын
Yeah, wish they could have some updated versions as we all know how fast computers are evolving, but good nevertheless.
@PeppoMusic
@PeppoMusic 7 жыл бұрын
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
@DJ369-Miami
@DJ369-Miami 10 жыл бұрын
Kudos to MIT for this course!
@MattMcConaha
@MattMcConaha 10 ай бұрын
RIP to the several million people who didn't make it to lecture 2
@hung4hair
@hung4hair 9 жыл бұрын
@13:10, when professor answers the student's question, his statement "under ASCII encoding, the numbers are going to appear after the characters (alphabets?)" is incorrect. In ASCII encoding the numbers come before the alphabets. The reason why 4 < '3' is "True" is because the value of '3' in ASCII is 50 in decimal. So (decimal 4) < (decimal 50) is True. As the professor indicated, python has an issue where it allows mixing of types and is the reason for confusions.
@avijeetjha8774
@avijeetjha8774 7 жыл бұрын
Adam Adam 1-how do we know when has a block ended coz at 37.12 the output said mom and not hello although both hello and mom print statements were written consecutively without anything in between. 2-the integers are not assigned to variables rather the variables just get bound to the number which pre existed somewhere then does the same hold true for strings also coz it would have had been a daunting task for the developer to create all combinations of words and sentences that can be made with 26 alphabets which can then be bound to the variables.
@christalkarat
@christalkarat 11 жыл бұрын
Opps! I m a person who does not know anything about coding and programing. I love his lectures. :-)
@andylovesringo
@andylovesringo 11 жыл бұрын
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.
@aydinjalilov2328
@aydinjalilov2328 5 жыл бұрын
Python made a long way since this MIT class but there is still lots of useful information.
@pedrodogg69
@pedrodogg69 13 жыл бұрын
All the reading im doing is not really helping but these videos are gold! thanks guys
@MrMackxl65
@MrMackxl65 14 жыл бұрын
Indeed an Awesome Lecture just like we had at Berkeley from Prof. Cummings!
@MrPatrickDayKennedy
@MrPatrickDayKennedy 9 жыл бұрын
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
@sadnessinmylife
@sadnessinmylife 11 жыл бұрын
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
@thomaboyle8575
@thomaboyle8575 7 жыл бұрын
Thank You for This quality Free education content, very much perseverated !
@TomboyCactus101
@TomboyCactus101 12 жыл бұрын
Thanks Goodness for the subtitles, they really help. :)
@Rback189
@Rback189 Жыл бұрын
Excellent material. Someone needs to get this man a keyboard and mouse.
@anilbhattarai8661
@anilbhattarai8661 5 жыл бұрын
>>> 'a' < 3 Traceback (most recent call last): File "", line 1, in 'a' < 3 TypeError: '
@gpjapan
@gpjapan 7 жыл бұрын
Branching section starts at 29:10.
@11McBdogs
@11McBdogs 12 жыл бұрын
i love the internet. I can't pause and rewind the teacher to write notes when I'm in a classroom.
@Colstonewall
@Colstonewall 13 жыл бұрын
@ShitWrangler It's all in what you find interesting. If this bores you, then it may not be the class for you. When I was younger, this would have bored me to tears. Now, I LOVE IT!
@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!
@LucasMelin
@LucasMelin 15 жыл бұрын
In python, whitespace is very important. Your code should look like this: x = 15 if (x/2)*2 == x: print 'even' else: print 'odd' However, if you are using python 3, print is used as a function, so you need to type print('even') instead of print 'even'.
@Ghostarrow_360
@Ghostarrow_360 2 жыл бұрын
learning in 2022 time to change careers. This is amazing
@jimmysjamin1
@jimmysjamin1 6 жыл бұрын
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.
@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
@andylovesringo
@andylovesringo 11 жыл бұрын
Not really, you don't need to be "good" at math to be a good software engineer. But the catch is, you do have to be "good" to pass the math classes I mentioned. The way math is, it's not like other subjects where you memorize, regurgitate it on the test, then forget it when the semester's over. Math is a skill that has to be practiced, and in order to pass the next math class, you can't forget what you already learned. Math is like a tool box, forget one tool, and you can't get the job done.
@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
@surfpub2001
@surfpub2001 15 жыл бұрын
Awesome lecture. Detailed instructions followed by solid examples.
@PRIYA-pv5hl
@PRIYA-pv5hl 2 жыл бұрын
👍👍👍
@LucasMelin
@LucasMelin 15 жыл бұрын
In python, each indentation is 4 spaces. Sometimes tab can give you more or less than that. Try indenting 4 spaces.
@cyclist14
@cyclist14 13 жыл бұрын
I really love programming, its like art for smart people! (not saying that artists are stupid)
@bhaumiktandan7815
@bhaumiktandan7815 5 жыл бұрын
These lectures are really very good!
@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.
@ahsanm8553
@ahsanm8553 10 жыл бұрын
i like his way of teaching. starting off easy before bending people over later on when the actual science of computers begins.
@natepowley
@natepowley 6 жыл бұрын
John is like google, an infinite amount of knowledge, yet he isn’t physically tangible!!!!!
@aaronhughes3278
@aaronhughes3278 8 жыл бұрын
really complicated but after a bit of research i understand more, what an excellent educational video, thanks +MIT OpenCourseWare
@mrnettek
@mrnettek 6 жыл бұрын
It becomes way more complicated. Good luck.
@rauc6788
@rauc6788 13 жыл бұрын
@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!!
@HyperElf9
@HyperElf9 13 жыл бұрын
On a second note these videos are awesome! Thank You!
@FloralMogul
@FloralMogul 11 жыл бұрын
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!
@tamizh2024
@tamizh2024 3 жыл бұрын
What a man he is. Wow. He is a God-Sent to teach.
@CrayolaMapleVideos
@CrayolaMapleVideos 12 жыл бұрын
To everyone using python 3.0 and up, the even trick no longer works, as you no longer require floating integers to not do integer division.
@MichaelSignor
@MichaelSignor 11 жыл бұрын
Great videos for learning Python syntax. I like how the developers force you into a structured coding environment. :-)
@HermesLopez-i2e
@HermesLopez-i2e 6 ай бұрын
I'm finally on lecture two wish me luck
@drcl7429
@drcl7429 7 жыл бұрын
I have never been to university but I would have thought that people who have chosen to study computer science would already know this stuff. Surely if you are interested enough in computers to be doing computer science, at MIT no less, then surely you must have done some programming!
@dacoup5955
@dacoup5955 9 жыл бұрын
Again really appreciate the lectures.. guys much appreciated
@zigginzag584
@zigginzag584 4 жыл бұрын
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?
@Paradox924X
@Paradox924X 15 жыл бұрын
Another way of doing it besides riding on integer arithmetic (which could fall through if somehow a floating point gets assigned to a variable which will, as per python's design, dynamically change into a variable that holds floating points) would be to use the modulus operator, %. For example: if x%2==1: print 'Odd' else: print 'Even'
@RiftRaft123
@RiftRaft123 14 жыл бұрын
I learned about numbers and strings this year in high school. That is about all we learned in my shitty computer science class. But college gives me hope because i dnt know most of what this guy is talking about, but I definately want to know. Hopefully my college professor will be as energetic while teaching.
@fdama
@fdama 11 жыл бұрын
Thank you so much MIT!
@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'
@juraijbinjamal5313
@juraijbinjamal5313 6 жыл бұрын
5:52. 10:52. 22:17 25:26 30:43 35:28
@maxgunn555
@maxgunn555 12 жыл бұрын
@snappycapz comfort of home. ability to pause rewind and knowing more information is right around the corner.
@AeneasTroy
@AeneasTroy 12 жыл бұрын
Watch out!! For python 3.0 and upper version: >>>9/5 1.8 #(float) >>>9//5 1 #(integer)
@pablocau3792
@pablocau3792 5 жыл бұрын
OMG you actually made the video better!! God bless you!!!
Lec 3 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008
51:00
Lec 1 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008
53:30
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 7 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 119 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 8 МЛН
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 3,8 МЛН
We Built the Internet in Minecraft
25:18
Branzy
Рет қаралды 3,2 МЛН
The most useless degrees…
11:29
Shane Hummus
Рет қаралды 4,1 МЛН
Programming Loops vs Recursion - Computerphile
12:32
Computerphile
Рет қаралды 1,5 МЛН
The Map of Engineering
22:09
Domain of Science
Рет қаралды 2,7 МЛН
An Entire Computer Science Degree in 11 Minutes
11:13
Kevin Naughton Jr.
Рет қаралды 852 М.
Lec 4 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008
51:27
How do Graphics Cards Work?  Exploring GPU Architecture
28:30
Branch Education
Рет қаралды 1,8 МЛН
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 7 МЛН