Shell vs. Editor

MIT 6.0001 Introduction to Computer Science and Programming in Python, Fall 2016
View the complete course: ocw.mit.edu/6-0001F16
Instructor: Dr. Ana Bell
This in-class question explains the difference between the IDLE python environment and the shell.
License: Creative Commons BY-NC-SA
More information at ocw.mit.edu/terms
More courses at ocw.mit.edu

Пікірлер: 38

  • @akbarrauf2741
    @akbarrauf27417 жыл бұрын

    thank you ,mit

  • @learning_with_irving4266
    @learning_with_irving42667 ай бұрын

    Beautiful, the way the 0s and 1s map out our simulation

  • @ferhatboy78
    @ferhatboy785 жыл бұрын

    thanks a lot. very helpful course. simple and well.

  • @PartScavenger
    @PartScavenger4 жыл бұрын

    "75 percent of the people got it right, Perfect"

  • @jikachu926

    @jikachu926

    3 жыл бұрын

    LOL HER FACE BEFORE SHE SAID PERFECT

  • @muhammadsarfraz2953
    @muhammadsarfraz29533 жыл бұрын

    thank you mit. its really helpful for me because i am studying economics in university and i want to change my program to computer science so i really get help from mit who already giving me information about programming

  • @NadidLinchestein

    @NadidLinchestein

    4 ай бұрын

    How's it going now?

  • @inafridge8573
    @inafridge85734 жыл бұрын

    Wait I thought this would compare using a shell vs using an editor but that didn't happen

  • @deftrascal1626

    @deftrascal1626

    3 жыл бұрын

    Yeah I really don’t understand how the title relates at all

  • @aligokalptopsakal4279

    @aligokalptopsakal4279

    2 жыл бұрын

    ​@@deftrascal1626 If you type the code in the lecture on Python Shell, it will first return the type of 5, and then the calculation in the print function. However, if you type the same code on an IDE, it will only return the calculation in the print function. One must use the print function to print something on an IDE, whereas there is no such necessity on a Shell. The code that is typed on a Shell is executed directly. I think she meant to explain this difference. I've come here to find out why this happens, but I am disappointed too.

  • @DaCurse0

    @DaCurse0

    Жыл бұрын

    @@aligokalptopsakal4279 The term shell is incorrect here, the IDE also runs your program in a shell technically. The correct term is a REPL. When running the python command without any arguments or when using something like IDLE you get a REPL - it reads and executes a single line of input and it prints whatever the last statement in that line evaluates to. This is why it shows you that the type function return int. When running a file with the python command, which is essentially what your IDE does, the only way to observe any output is by means of performing side effects. One such side effect is writing to the standard output. In a shell (like command prompt, or bash) you will see everything the program printed to it's standard output, IDEs also either use a shell internally or emulate one by reading the processes' standard output and displaying it to you. Since you are most likely running your REPL in a shell (by starting up python in command prompt or bash) you will also see that print is outputting to the screen as well.

  • @brianeastlick7293
    @brianeastlick72932 жыл бұрын

    Amazing teacher ❤️

  • @brainstormingsharing1309
    @brainstormingsharing13093 жыл бұрын

    Absolutely well done and definitely keep it up!!! 👍👍👍👍👍

  • @juliannevillecorrea
    @juliannevillecorrea5 жыл бұрын

    thank you !

  • @PhoebeJCPSkunccMDsImagitorium
    @PhoebeJCPSkunccMDsImagitorium2 жыл бұрын

    This professor is one of those CS profs with ur best interests at heart that annoyingly wants you to learn everything yourself (but as a freshman/sophomore noone understands that you can only learn how to program on your own)

  • @lepidoptera9337

    @lepidoptera9337

    Жыл бұрын

    Dude, if you are entering CS as a computer newbie, then you are the one idiot in the class who deserves to be washed out.

  • @abdullahdarr9163
    @abdullahdarr91635 жыл бұрын

    there was not a lot about the two differences

  • @elvissanchez2703
    @elvissanchez27034 жыл бұрын

    Thank you! :)

  • @rizvicomputercodes3968
    @rizvicomputercodes39683 жыл бұрын

    Why the lec is so small is this is any kind of demo class

  • @muhammadsarfraz2953

    @muhammadsarfraz2953

    3 жыл бұрын

    nope they only cut the video to explain about shell vs editor

  • @batman9937
    @batman99377 жыл бұрын

    Annabelle 😂😄😄😃

  • @drmustache5637
    @drmustache5637 Жыл бұрын

    Good video

  • @florroman1273
    @florroman1273 Жыл бұрын

    Soooo.. what is the diferente between shell and editor?

  • @mitocw

    @mitocw

    Жыл бұрын

    The Python shell is the interactive console. You can enter single commands, and classes and functions into the shell, although you can’t save your code from the shell. Commands entered are executed immediately. An editor allows you save edit and save text files, which can be run later.

  • @florroman1273

    @florroman1273

    Жыл бұрын

    @@mitocw thank youuuuuui!@!

  • @muhammadsarfraz2953
    @muhammadsarfraz29533 жыл бұрын

    hy anybody can tell me which software we have to choose to console the programming for python and from where can i download it

  • @mitocw

    @mitocw

    3 жыл бұрын

    The course was designed for Python 3.5. Many courses recommend installing the Anaconda distribution: www.anaconda.com/products/individual

  • @ajaykumbhar6919

    @ajaykumbhar6919

    3 жыл бұрын

    @@mitocw It's great to see you're replying to recent comments. Keep up the good work :)

  • @Clyffcarlock1
    @Clyffcarlock13 жыл бұрын

    I thought type(5) would show 5 as a "int"...integer...

  • @MrTweetyhack

    @MrTweetyhack

    8 ай бұрын

    it does. her editor is broken because she's using Windows

  • @stereoheart.806
    @stereoheart.806 Жыл бұрын

    😄

  • @smileyface3188
    @smileyface3188 Жыл бұрын

    Annabelle 😂😄😄😃

  • @smileyface3188
    @smileyface3188 Жыл бұрын

    Annabelle 😂😄😄😃