Added: 2 years ago
From: MIT
Views: 104,311
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (164)

Sign In or Sign Up now to post a comment!
  • well done thank you !!!

  • Thanks you :D

  • I must have dozed, what is "foo" ?????

  • @mjconley "foo" is a conventional name for a variable whose purpose is only to demonstrate a concept.

  • I was so confused why he did a list. He should know better :S

  • I am very happy to see the vidoe after you give this Common code patterns: iterative programs

  • I Really Like The Video From Your Lecture 3: Common code patterns: iterative programs

  • Your Video Is Very Useful Sharing Common code patterns: iterative programs

  • after i watched this video Common code patterns: iterative programs, my insight is very open because the video is very good to give information

  • naja einzige deutsche hier

  • LAME

  • WE NEED MORE TEACHERS LIKE THIS

    KEEP UP THE GOOD WORK

  • I want to thank MIT for providing these lectures and the lecturers for them allowing it to be done. Given the chance I would have attended MIT specializing in software engineering, but since I could not, this is almost like being in the classroom.

  • im so grateful for MIT uploading such valuable lectures! Thank you so much

  • Can any one tell me what program he is using to write the codes? I downloaded python and it doesn't seem to have the "run" function as in this video. Is it so because python is an interpreter and not compiler? thanks

  • @scorpionismification Not sure if it will be similar in Windows or Linux but, if you're using a mac, just load the python shell, then go to "File" and choose "New Window". "Run" will appear on the menubar when you're editing inside the new window.

  • @xejerk and @SandroidHD: Thank you for replying! I have Windows and I use Python IDLE (GUI) but it doesn't have the "run" function. The problem is, unlike in eclipse (in java), I can not go back and make changes in the code in Python IDLE.

  • @scorpionismification Any time! You do essentially the same thing on Windows. Go to File > New Window. The window that pops up should have the 'Run' function in the menubar. You can write your code in this new window, save it, then choose Run > Run module.

    Note that the output of your code (as well as any errors) will still appear in the IDLE window.

  • @xejerk thanks again! this is exactly what i was looking for. cheers!

  • @scorpionismification Awesome :) Happy coding!

  • @scorpionismification he uses IDLE to run the code

  • @Christmas800

    Assignments and code files are available at the MIT opencourseware website see link below:

    ocw.mit.edu/courses/electrical­-engineering-and-computer-scie­nce/6-00-introduction-to-compu­ter-science-and-programming-fa­ll-2008/assignments/.

    You can also access hundreds of other courses on this site in case you need more enlightening in other fields.

  • @Christmas800

    Assignments and code files are available at the MIT opencourseware website see link below:

  • Lecture attendance - students in auditorium plus additional 85,105 people.

  • i wish there were assignments to go along with each video...

  • Too much fluff and not enough coding. I hope they have other classes there that are more substantive. The mathematics lectures seemed to have a higher percentage of pertinent content.

  • @agxphoto well as it says, it's an intro course... it assumes absolutely no prior knowledge of programming at all...

  • @agxphoto knowing what work your tools do < knowing how your tools work < knowing why your tools work. this is an intro course, the profs are rightly putting fundamentals first.

  • Programming in an intro class! lol, at my university they teach you the difference between opt-in and opt-out website spam - seriously. I wish I went to MIT instead : /

  • I really hope someone laughs at one of his jokes

  • I wish the camera man was more ON BALL with switching between him speaking and him using code on the screen.

  • 15:35 oh god that coding style.

  • Lec 3, ten minutes in, I Quit.

  • Im still watching this and iv no idea what hes on about.

  • @dohcturbo2 Really? This is pretty basic stuff. Maybe you should read "Learning Python the Hard Way" by Zed Shaw. Don't let the name fool you. It's free online. Just Google it. Then you should be ready to move on to more advanced stuff.

  • the camera guy is just plain awful...what did he correct??? can't hear the sound can't see the correction...great lecture though

  • @Shpira He added a comma after i. So, the tuple (i) in the line divisors = divisors + (i) became (i,)

  • @choonghuh Thanks!

  • I sadly found out today that Python does not have a GOTO function. Poooorrrquueeee?

  • @calculusisamazing Don't Tell Dijkstra you want the GOTO function in Python. I think doing so would be considered harmful.

  • I am getting an MIT education for free. I'm thankful for this opportunity.

  • Anyone notice how the number of views is dropping as you get further in this series

  • @thehobbidhobbin yea programming concepts can be hard to grasp. Ive been learning them slowly over the year. Its really starting to click though to the point were I am beginning to understand the linux kernel.

  • what does he throws to whom answer the questions he makes?

  • @epicnidhogg

    candies

  • @felixcantournet ahhh, thx

  • @epicnidhogg candy in lecture 2 its explained

  • i wanna hear him say cool whip

  • Comment removed

  • hi

  • How do you get IDLE for the Mac OS X 10.6 software?

  • @danjonila Just download Python from python.org, it should be ok.

  • Thumbs up for his terminator joke :)

  • Comment removed

  • This is a great lecture, but why use a totally unrelated video to express your negative opinion about someone? 18:28 If we wanted to hear political opinions we'd be watching a different channel.

  • @calebd87 He's not doing that lecture in order to make a video, he's just teaching his class, and they happen to be filming it. If he wants to do political jokes in his classes, well, that's up to him.

  • at 43:12 you also need to write at the end of the script ** print divisor **

  • bookmark 24:23

  • code @ 43:12 does not work for me. even after I added (i,). why?

  • @oladitan I am in the same boat..did you figure it out yet?

  • @jrprince21 no.

  • @oladitan @jrprince21 You have to add a space after the comma, like this (i, ), and not (i,).

  • Comment removed

  • how do you create a loop in a programming, what cammands go along with it?

  • AWWW THIS IS AWEsOME!!!

  • 33:22

  • 43:59

  • @anidude98

    what about it

    

  • i want a handout..... i cant always follow him or see the code

  • @anidude98 for handouts go to MIT's site (search google for this course). the handouts are under "videos", then "related resources"

  • i wonder why is the lecturer obsessed of prof. John

  • I`m currently taking Intro Programming Logic and we are doing flowchart strucuture and I find it quite easy and Interesting!! LOVE MIT!

  • @ 10:01 it turns into a horror movie lol for a sec

  • AT 02:34 the close caption says "We saw wow"

    The professor is obviously saying "while".

  • @bluemukaki Maybe in your mind. In the age of misinformation needless debates naturally flare up. Compare the definitions of both and then make an educated decision about the "controversy."

  • gonna watch them all. Thanks MIT

  • he is so cute

  • That's a parallelogram, not a trapezoid. I love correcting MIT professors.

  • @kangac81 wow good job answering a math related question, you should become a mathematician

  • @kangac81 then maybe you should work there.... oh your probably not that smart you fucking tard!!!!

  • That's a parallelogram, not a trapezoid. I love correcting MIT professors.

  • he is the best ;)

  • where's mike sandy?

  • These people there are cold as ice!! They should at least laugh with his jokes out of politeness.

  • the divisors example should look like this:

    x = 100

    divisors = ()

    for i in range(1,x): if x%i == 0: divisors = divisors + (i,)

    print (divisors)

  • @Anorrea thank you!!! ^^

  • @Anorrea Thank you for this one :)

  • A world of privilege. see how far one must go just to get a decent lecture. if only opportunity were universal.

  • what is that second window he has open? it doent have the >>> that my python shell does, it makes it hard to follow allong without knowing what that window is. If anyone knows please let me know.

  • @EKBadass hey EK, this is just any old text editor. Say for instance you type many lines of code into your shell. But instead of typing that in every time you can save all the code in a text file. Then when you run the text file in python, you will get back the interpreter with some output (if you specified some output in the code). So he has a text editor open (in this case IDLE) where he is saving lines of code you would of had to type over and over again.

  • Comment removed

  • @zhkaz your message shows how well you know English

  • @maxbublis But i know Python )

  • Comment removed

  • @zhkaz But 'list' is not keyword at all. You could define function named 'list'. It shows how you know Python.

  • @maxbublis i know list is not keyword it is a datatype )

  • @maxbublis what you are talking about ? I just to say that lecturer will can't teach if it don't know Python is well

  • @zhkaz He is not teaching Python.

  • @maxbublis But He is explaining with using Python )

  • @zhkaz omg, you are dumb

  • @maxbublis only stupid moves on insult

  • @maxbublis you showed who you are )

  • I was glad someone corrected him about the list and tuple syntax. I bet he would have figured it out a bit later though, or John would have corrected him.

  • why my teacher did not be impressed?because he expect a tiny short program.ye if you did it in finite way it is simple,just call sub which turbo c provided then it is short.but i did infinite and a lots of subs.of course it will be very difficult and become long.any way this clip is very good.i have to watch it three times since my English is poor.to prove that i guess in the last 1+9+5+2=17 !! am i right?

  • k.i am from TAIWAN too,not a programmer,knowing little language.But I highly recommended flow chart.because with it,you can generated any code you want.i did x86 assembly for digital oscilloscope which i made for project of my last semester.i did turbo C for a little program which do convert in between decimal & binary & octal & hexadecimal,in a infinite digit way by turning them into strings ,and it turn out to be a big one 600 lines .but it did not impressed my teacher. 

  • Professors in MIT really know how to teach people.

    Even a non-english programmer like me in Taiwan still understand what they are teaching and enjoy the online courses so much~

    MIT OpenCourse rocks~

  • good stuff

  • each lecture theres less views 

  • Comment removed

  • I have no chance to study in MIT now.

    but I would like to study graduate education in the future.

    The reason is that I am

    MADE IN TAIWAN

  • It looks like whoever is operating the cameras are doing it totally half-assed.  They focus on the text of the source code and never pan to IDLE when he executes the code, like they don't know/care about what he's talking about.

  • Man i wish i m in MIT. University of Toronto sucks

  • It's python.

  • What changes does the prof make at 43:20? I can't see what he did.

  • @mrzipdisk he added a comma after the i e.g. divisors = divisors + (i,)

  • @broomballerBJS thanx, yo. That caught me up for a few minutes. The shell kept spitting 'can't concatenate int.s with tuples'. You saved me hours of scouring the internetz

  • I'm so glad that error was deliberate, I was reading it again and again thinking "am I thick? or does his code make no sense?" even typed it in to python and ran it to prove the point to myself.

  • What is interesting - His Lecture Lec 1 gets 113,265 views, Lec 2 - 31,844 views, Lec 3 - 15,452 views, Lec 8 - 5,640 views,

    Lec 14 - 3482 ..... It looks like exponetial decay ..... And how many of the viewers have listen to the entire lecture ? Perhaps MIT will have the courage to tell us.

  • Ok,

    I plan to follow the course through and will look int c++ after. Thanks for responding.

  • @0121ryanh117

    OK thanks

  • @ravigehlot

    Agree, this is basic, but really useful.

  • I would like to know how these concepts help programmers in the real world. Everybody isn't looking to find square roots. I wish the prof would clue me in to some concrete applications. Or help me to see the usefullness of what he is teaching.

  • Finally, there is a good use to youtube

  • @perepiscka pls, dont depreciatte youtube ... there is much more to see

  • @CHOOK36 Your right but still maybe its best to stop looking at those useless videos. Unless its gameplay of a video game and something else special... Its not really worth it

  • @perepiscka Yes i agree!!! At least something useful!!!

  • somebody write a python program that computes and prints the 1000th prime number.

  • if you look at their website, and go to the problem sets for homework, it tells you to solve for prime numbers. can you help me create a formula to find the 10000th prime?

  • @danedaworld use a counter and create an accumulating list. Starting from 0 (alternately, try writing this more efficiently by finding a lower bound (a good lower bound that is) for your prime number and start your counter there), increment by 1 and apply a prime number condition. Every time a number satisfies the prime condition, append it to your list and increase your counter. when your counter makes 1000, take l[len(l)-1] to be your 1000th prime

  • OhOh Oh OH OH OHHH!!

    ....Cant find the bound though. I have a hard time making a good condition for the prime. It always leaves out some numbers

  • @danedaworld well, the lower bound is not "necessary", an answer without the use of the bound will be sufficient - but perhaps not as efficient. Here is the idea: A prime, as you probably know, is only divisible by 1 and itself. Let's look at natural numbers: If b divides a, then a/b = k where k is in |N - thus kb = a. What can be said about b? (hint: could it be larger than a?). Could you not now form a FINITE set (note: this is important) for an iterative condition check pattern?

  • Comment removed

  • can someone help me with problem set number 2?

  • theese videos are realy good they realy give you a feel for what the class is like

    im 14 and im going to college next year and im definatley doing a computer science course now :D

  • @jamieomalley1

    what college

  • @cogexman

    national university of ireland maynooth im working on a project for simulated reality and artificial intelligence

  • @jamieomalley1

    well, never heard of it, but I guess it is real. but somehow i dont think ur 14...

  • @cogexman

    no i am im nearly 15 i got skipped up 3 years i didnt do 1st 2nd or 5th year i only did the exam years

  • o ok

  • i dont get the odd even flow chart,,,, lets say x=5, (x/2) x 2 = 5 but its not an evn number....

  • because 5 and 2 are integers, the result will also be an integer, so it will round the result.

  • SO after making corrections for parenthesis, what was the last problem that must be fixed in order to avoid typeError: can only concatenate tuple (not "int") to tuple. [Time 44 minute]

  • ...divisors = divisors + (i,)

    (Extra comma to show single item tuple)

  • The flowchart is a good idea. It really helps to visualize your program. In koffice (ubuntu), there's a decent flowchart program called Kivio if anyone is trying to find one.

  • Loading comment...
Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more
    to add this to a playlist