Тёмный

Shell vs. Editor 

MIT OpenCourseWare
Подписаться 5 млн
Просмотров 267 тыс.
50% 1

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

Опубликовано:

 

14 фев 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 38   
@akbarrauf2741
@akbarrauf2741 7 лет назад
thank you ,mit
@learning_with_irving4266
@learning_with_irving4266 7 месяцев назад
Beautiful, the way the 0s and 1s map out our simulation
@ferhatboy78
@ferhatboy78 5 лет назад
thanks a lot. very helpful course. simple and well.
@PartScavenger
@PartScavenger 4 года назад
"75 percent of the people got it right, Perfect"
@jikachu926
@jikachu926 3 года назад
LOL HER FACE BEFORE SHE SAID PERFECT
@inafridge8573
@inafridge8573 4 года назад
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.
@muhammadsarfraz2953
@muhammadsarfraz2953 3 года назад
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?
@brianeastlick7293
@brianeastlick7293 2 года назад
Amazing teacher ❤️
@brainstormingsharing1309
@brainstormingsharing1309 3 года назад
Absolutely well done and definitely keep it up!!! 👍👍👍👍👍
@juliannevillecorrea
@juliannevillecorrea 5 лет назад
thank you !
@PhoebeJCPSkunccMDsImagitorium
@PhoebeJCPSkunccMDsImagitorium 2 года назад
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 5 лет назад
there was not a lot about the two differences
@elvissanchez2703
@elvissanchez2703 4 года назад
Thank you! :)
@rizvicomputercodes3968
@rizvicomputercodes3968 3 года назад
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
@batman9937 7 лет назад
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
@muhammadsarfraz2953 3 года назад
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
@Clyffcarlock1 3 года назад
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 😂😄😄😃
Далее
Python vs. Math
1:37
Просмотров 243 тыс.
2. Branching and Iteration
43:31
Просмотров 559 тыс.
СЫН ДЛЯ БИТЬЯ - МУЖСКОЕ ЖЕНСКОЕ
1:04:37
Bash in 100 Seconds
2:33
Просмотров 1,4 млн
you need to learn BASH Scripting RIGHT NOW!! // EP 1
12:14
BASH scripting will change your life
14:18
Просмотров 985 тыс.
Using Python: The Python Shell and IDLE
10:40
Просмотров 510 тыс.
For Loops With Strings
4:19
Просмотров 61 тыс.
What Is a Shell
8:21
Просмотров 10 тыс.
The Terminal vs The Shell
1:20
Просмотров 50 тыс.
How I’d learn ML in 2024 (if I could start over)
7:05