Shell vs. Editor

Поділитися
Вставка
  • Опубліковано 18 січ 2025

КОМЕНТАРІ • 38

  • @inafridge8573
    @inafridge8573 5 років тому +45

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

    • @deftrascal1626
      @deftrascal1626 3 роки тому +2

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

    • @aligokalptopsakal4279
      @aligokalptopsakal4279 3 роки тому +10

      ​@@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 2 роки тому +1

      @@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.

  • @PartScavenger
    @PartScavenger 5 років тому +45

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

    • @jikachu926
      @jikachu926 4 роки тому +2

      LOL HER FACE BEFORE SHE SAID PERFECT

  • @learning_with_irving4266
    @learning_with_irving4266 Рік тому +1

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

  • @akbarrauf2741
    @akbarrauf2741 8 років тому +11

    thank you ,mit

  • @muhammadsarfraz2953
    @muhammadsarfraz2953 4 роки тому +9

    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

  • @brianeastlick7293
    @brianeastlick7293 3 роки тому +5

    Amazing teacher ❤️

  • @ferhatboy78
    @ferhatboy78 6 років тому +11

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

  • @PhoebeJCPSkunccMDsImagitorium
    @PhoebeJCPSkunccMDsImagitorium 2 роки тому +4

    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
    @abdullahdarr9163 6 років тому +11

    there was not a lot about the two differences

  • @rizvicomputercodes3968
    @rizvicomputercodes3968 4 роки тому +4

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

    • @muhammadsarfraz2953
      @muhammadsarfraz2953 4 роки тому

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

  • @juliannevillecorrea
    @juliannevillecorrea 5 років тому

    thank you !

  • @brainstormingsharing1309
    @brainstormingsharing1309 4 роки тому +5

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

  • @florroman1273
    @florroman1273 2 роки тому +1

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

    • @mitocw
      @mitocw  2 роки тому +3

      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 2 роки тому

      @@mitocw thank youuuuuui!@!

  • @elvissanchez2703
    @elvissanchez2703 4 роки тому +1

    Thank you! :)

  • @batman9937
    @batman9937 7 років тому +19

    Annabelle 😂😄😄😃

  • @Clyffcarlock1
    @Clyffcarlock1 3 роки тому +1

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

    • @MrTweetyhack
      @MrTweetyhack Рік тому

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

  • @drmustache5637
    @drmustache5637 Рік тому

    Good video

  • @muhammadsarfraz2953
    @muhammadsarfraz2953 4 роки тому +1

    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  4 роки тому +3

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

    • @ajaykumbhar6919
      @ajaykumbhar6919 4 роки тому +1

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

  • @stereoheart.sachii
    @stereoheart.sachii 2 роки тому

    😄

  • @smileyface3188
    @smileyface3188 2 роки тому

    Annabelle 😂😄😄😃

  • @smileyface3188
    @smileyface3188 2 роки тому

    Annabelle 😂😄😄😃