For this YOU TRY IT (For this code to use variables start and end in the range, to get the total sum between and including those values. For example, if start=3 and end=5 the the sum should be 12) why not just change mysum = 0 to mysum = 5?
Now you can't get out... if you go right or Right... where = input("You're in the Lost Forest. Go Left or Right? ") while where == "Right" or "right": where = input("You're in the Lost Forest. Go Left or Right? ") print("You got out of the Lost Forest!")
On the "AT HOME" Practice 1 section: The answer is: x = 15 for i in range(1,x+1): if i%5 == 0: print(i) What is the == 0 do? I get the i%5 is Divide i by 5.
== checks for sameness, but i % 5 gets the remainder of division, not division itself. 15 / 5 would give 3, but 15 % 5 gives the remainder of 15 / 5, which is zero. And this zero remainder is true in those three cases: where i is 5, 10, and 15.
The course materials are available on MIT OpenCourseWare at: ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/. Best wishes on your studies!
Chapters:
00:00 - Intro
04:45 - Zelda
07:49 - While Loops
30:40 - For Loops
45:52 - Summary
Its so hard to find a good teacher. Thank you MiT for uploading this video online for free.
I also have
I prefer the new format .
Greetings from Lampasas Texas .
the best teacher ever.
Dear Dr Bell, Thank you for the clear explanation on when to use for and while loops depend on knowing or not knowing in advance the iteration.
First video has 250k views, this has 15k. Keep grinding boys
Just phenomenal thank you Instructor Ana Bell.
Great opportunity for
Thank u MIT sooo much
Keep doing whatcha doing
The a place up there for people like 😇😇
thank you very much for such a useful course. I will never forget that and I hope I could support you one day.
I like watching this lecture
Thank you Ana. I need the review.
excellent. I'm a beginner i hope to learn more from this channel.
Iv been self taught for 6 months so far now im 3 coarses in and not learned nothing new yet....im doin good
Hey 👋 I’m studying too. Do u wanna learn with me? I’m don’t have friends which study that too 😢😂
@Pensologoesquecokkkkkk im not sure how we would go about doing that
For this YOU TRY IT (For this code to use variables start and end in the range, to get the
total sum between and including those values.
For example, if start=3 and end=5 the the sum should be 12) why not just change mysum = 0 to mysum = 5?
Now you can't get out... if you go right or Right...
where = input("You're in the Lost Forest. Go Left or Right? ")
while where == "Right" or "right":
where = input("You're in the Lost Forest. Go Left or Right? ")
print("You got out of the Lost Forest!")
mysum = 5
start = 3
end = 5
for i in range(start, end):
mysum += i
print(mysum)
You still get 12
greatest teacher .
On the "AT HOME" Practice 1 section:
The answer is:
x = 15
for i in range(1,x+1):
if i%5 == 0:
print(i)
What is the == 0 do? I get the i%5 is Divide i by 5.
== checks for sameness, but i % 5 gets the remainder of division, not division itself.
15 / 5 would give 3, but 15 % 5 gives the remainder of 15 / 5, which is zero. And this zero remainder is true in those three cases: where i is 5, 10, and 15.
17:26 left off
Completed
Please ad the Dr. in front of your name. Makes a huge difference.
Is there a pdf of all the coarses i can get?
Here's what we have for courses: ocw.mit.edu/search/
Best wishes on your studies!
Can we access microquizes?
The course materials are available on MIT OpenCourseWare at: ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/.
Best wishes on your studies!
The fingertip exercise's solution code of this lecture is not entirely correct. N has to be cast as a variable first as per the question.
Yes. They say it is given to you as a positive integer, but you're right, you would actually need to include that in the code for it to work.
GOOD🎉
Hello, thanks, How are you? From France, great Thanks. Do you Know the benefts of doing sports?
😍😍🥰
Смотрю в 2 часа ночи) Зачем?)
Конечно, чтобы стать умнее и спасти мир.
❤
Iv been self taught for 6 months so far now im 3 coarses in and not learned nothing new yet....im doin good