• Ad banner
    Ad banner

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

    Please login to search this video.

    Lecture 1: Goals of the course; what is computation; introduction to data types, operators, and variables
    Instructors: Prof. Eric Grimson, Prof. John Guttag
    View the complete course at: http://ocw.mit.edu/6-00F08

    License: Creative Commons BY-NC-SA
    More information at http://ocw.mit.edu/terms
    More courses at http://ocw.mit.edu

    Watch the Source Video Here!

    About The Author

    You Might Be Interested In

    Comment (26)

    1. i wonder about some super genius kid at harvard or MIT in the late 80s , like some tall kid with a ponytail and glasses assuming there were people there who fit that description

    2. ATTENTION: MAYBE YOU DIDN'T GET THE MEMO. SO I REGRETFULLY INFORM YOU THAT THE FUNCTION MAIN() IS DEAD. IT DIED OVER 30 YEARS AGO WHEN MS-DOS/DOS DIED AND WINDOWS WAS BORN.

      THE REPLACEMENT FUNCTION TO MAIN() IS WINMAIN () OR ONE OF IT'S ALTERNATIVES.

      AHAHAHA AHAHAHA LOL

    3. Fixed program computer-Eg. Calculator
      Stored program computer
      Consists of Memory ALU PC
      instructions are stored in memory and PC(program counter) points to the instruction.
      Program is like a recipe.
      Given a fixed set of primitives a good programmer can program anything
      With six primitives anything can be programmed
      Turning compatibility- What can be done in one Programming language fundamentally can also be done in another language too
      THIS PROGRAM IS NOT ABOUT PYTHON
      Different dimensions of language
      -High vs Low level
      -General vs Targetted language
      -Interpreted vs Compiled
      Interpreted languages are easier to debug but are slow
      Compiled lang involve converting code to object code
      Syntax vs Semantics
      Syntax – legal expressions in the lang
      Static semantics- Which programs/expressions are meaningful
      Eg.- "My desk is simson" grammitaclly correct but no sense
      The program will give
      Semantics (Full semantics)- What does the program mean/do and outcomes it gives
      The code might keep running in infinite loop or crash or might run and give correct answers or wrong answers
      Python
      2 types of values
      1.Numbers(int,float) 2.Strings(type on their own)
      Set of operations
      +*/- Arithmatic
      print('a'*'b') – Static semantic error
      print('3'*3) – 333
      No error as multiplication operator is overloaded as it can do number multiplication as well as string duplication and concatenation
      52A – Syntax error
      3/5 will give 0 because both are integer
      3.0/5 =0.599999 one of the float so we get float answer

    LEAVE YOUR COMMENT

    Your email address will not be published. Required fields are marked *