Lecture 7: Decomposition, Abstraction, and Functions

  Рет қаралды 6,613

MIT OpenCourseWare

MIT OpenCourseWare

Ай бұрын

MIT 6.100L Introduction to CS and Programming using Python, Fall 2022
Instructor: Ana Bell
View the complete course: ocw.mit.edu/courses/6-100l-in...
KZbin Playlist: • MIT 6.100L Introductio...
An introduction to functions and their decomposition, abstractions, and specifications. Functions allow us to suppress detail from a user and capture computation within a black box. A programmer writes functions with 0 or more inputs and something to return. A function only runs when it is called and the entire function call is replaced with the return value.
License: Creative Commons BY-NC-SA
More information at ocw.mit.edu/terms
More courses at ocw.mit.edu
Support OCW at ow.ly/a1If50zVRlQ
We encourage constructive comments and discussion on OCW’s KZbin and other social media channels. Personal attacks, hate speech, trolling, and inappropriate comments are not allowed and may be removed. More details at ocw.mit.edu/comments.

Пікірлер: 12
@leonoragoston1345
@leonoragoston1345 Ай бұрын
That woman taught me how to code I believe in 2018. I am now writing my phd thesis in ai methods applied in bacteriophage related questions
@Hsalz
@Hsalz 17 күн бұрын
Ana explains things very well. Enjoying this course!
@user-of2wr4js6h
@user-of2wr4js6h Ай бұрын
thank you very much♥
@bakdauletseisenkul2833
@bakdauletseisenkul2833 9 күн бұрын
Can the micro quizzes and the solutions of problems sets be uploaded? It would be very useful.
@mitocw
@mitocw 5 күн бұрын
See MIT OpenCourseWare for the course materials. The micro quizzes (with solutions) can be found at: ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/pages/finger-exercises/. Best wishes on your studies!
@izzyklar
@izzyklar 19 күн бұрын
First, thanks for the lesson 👍🏻 Question: in the last example of adding the sum of odds, how would the While loop execute the code if the odd condition is false? Shouldn't it stop right there?
@Hsalz
@Hsalz 17 күн бұрын
The while loop is true and runs so long as i
@carsonjamesiv2512
@carsonjamesiv2512 15 күн бұрын
👍
@axumitedessalegn3549
@axumitedessalegn3549 Ай бұрын
Please fix your link for the notes and code. You have lecture 3 notes and code in the lecture 7 page.
@mitocw
@mitocw 27 күн бұрын
We'll take a look at it. Thanks for your note!
@mitocw
@mitocw 27 күн бұрын
Okay, it has been fixed!
@axumitedessalegn3549
@axumitedessalegn3549 27 күн бұрын
@@mitocw Thanks! :)
Lecture 8: Functions as Objects
1:17:46
MIT OpenCourseWare
Рет қаралды 7 М.
Does a rolling wheel use static friction or kinetic friction?
1:14
She’s Giving Birth in Class…?
00:21
Alan Chikin Chow
Рет қаралды 6 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 74 МЛН
Заметили?
00:11
Double Bubble
Рет қаралды 2,5 МЛН
4. Stochastic Thinking
49:50
MIT OpenCourseWare
Рет қаралды 181 М.
Lecture 4: Loops over Strings, Guess-and-Check, and Binary
1:13:16
MIT OpenCourseWare
Рет қаралды 15 М.
Python Classes in 1 Minute!
1:26
b001
Рет қаралды 151 М.
1. Algorithms and Computation
45:39
MIT OpenCourseWare
Рет қаралды 1,3 МЛН
Lecture 18: More Python Class Methods
1:17:26
MIT OpenCourseWare
Рет қаралды 3,6 М.
Lec 4 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008
51:27
She’s Giving Birth in Class…?
00:21
Alan Chikin Chow
Рет қаралды 6 МЛН