2. Branching and Iteration

preview_player
Показать описание
MIT 6.0001 Introduction to Computer Science and Programming in Python, Fall 2016
Instructor: Dr. Ana Bell

In this lecture, Dr. Bell introduces strings and indentation in Python, then discusses basic features of programmatic logic, such as branching, conditionals, iteration, and loops.

License: Creative Commons BY-NC-SA
Рекомендации по теме
Комментарии
Автор

To whoever made the subtitles for this 40+ minutes video. Thank you.

walawave
Автор

pre labeling
​0:02:08​ Strings
0:03:48 (Coding)
0:06:31 Input/Output:print
0:08:21 (Coding)
0:09:57 Input/Output:(" ")
​0:12:14 (Coding)
​0:14:00​ Comparison operators on int, float, string
0:17:06 MIT map
0:18:00
0:19:58 Control flow - branching
0:20:00 0:22:00
0:24:51 ​Indentation
0:25:46 =vs== 0:28:00​
0:28:58 Control flow : while loops
0:31:57 Control flow : while and for loops
0:35:09 ​Control flow : loops
0:36:44 range (start, stop, step)​ 0:38:00​
0:39:42 (Coding)
0:41:06 break Statement
0:42:26 for vs while loops

flvsedl
Автор

Love MIT for their CS OCW!!! One comment to add here. When you ask Python to compare two strings (like mentioned in the video "a" > "b" and the result is False) in the backend, Python is comparing their ASCII values (ASCII value of "a" = 97 and ASCII value of "b" = 98. Hence False)

osamakamal
Автор

Kind of wish I got to experience CS at MIT. I loved my professors but this is a professor I know I'd like and learn alot from. Plus MIT's reputation is unmatched.

bjr
Автор

THANK YOU, MIT COURSEWARE and sponsors! ❤️

oneofthesidemen
Автор

Me and a fellow colleague are leaping into Python (my native language being R). The lecture videos are well-paced and the lecturing style is top notch! I lecture the occasional statistical programming course, and it's not always easy to keep it interesting and engaging like it is here.

PeejTastic
Автор

For those curious about how Dr. Bell commented out certain lines of code here's the shortcut list,

Single line comment

Ctrl + 1

Multi-line comment select the lines to be commented

Ctrl + 4

Unblock Multi-line comment

Ctrl + 5


P.S: Got this from Stack Overflow so due credit to the actual authors for this query.

diggitycat
Автор

I am very lucky and happy to see the smiley, energetic and enthusiastic face of ANA mam, when she tried to listen the question that the student asks.BUT AT OTHER PLACES, THIS HAPPENS RARELY BUT NOT IN MIT.

hemarathroy
Автор

You're a good teacher, accessible yet giving your students a chance to learn.

danielkinyanjui
Автор

Dr.Bell, can't thank you enough for the great explanation.

DarthAbhi
Автор

Had somebody taught flow control statements as clearly as Dr.Bell my coding journey would have been at stratospheric levels...these lecture ignited my hopes of becoming a good programmer...

mahiee
Автор

Dr. Ana Bell is great teacher.❤❤❤ You are very good at explaining and in all perspective. You are best.Thanks MIT for Dr. Ana Bell.
Thanks MIT for OCW.MIT is best and doing great work.

vishalmalaye
Автор

Really liked the Zelda example, loved the flipping table :) Well played, Dr. Bell!

unrockbaer
Автор

The idea behind ocw is profound. By distributing knowledge to the whole world for free, MIT is paying tribute to the geniuses like faraday, curie, ramanujan etc... Who produced phenomenal works despite of not having the proper access to the knowledge they needed.

barlov_filange
Автор

Really good for a start with Python. Great work Dr. Bell (and Professor Grimson).

DanielFerreira-gudi
Автор

She is so adorable, I really love her lessons. Thanks MIT.

xiaoningdong
Автор

if course_grade == A:
print("this teacher is amazing")
elif course_grade in range (A, C+):
print("This teacher is really good!")
else:
if course_grade <= C+
print("I Hate coding")

tawfeeqmuallem
Автор

you're brilliant Dr. Bell. love your lectures💜

saimahossain
Автор

What a smooth lecture ! Thank you ! You helped me understand Python. My professor did a terrible job teaching this. Thanks MIT !

nitirajdaby
Автор

This is the best MIT has to offer.
Good thing its free.

stevemilo