Didn't fix the mic issues, however. In a room like that a well placed ambient room mic would be sufficient to capture her voice. All the noise caused by the mic picking up her movements is very distracting. Nonetheless, grateful to have access to such knowledge for free. Thank you!
Great class. Great presentation. Great service by the elite universities to offer this to the general public. I was about to doze off until she started talking about the purpose of the Boolean. That woke me up fast. Thank you professor Anna Bell. These professors are all so super smart and so humble. I looked up her cv and she has a doctorate from Princeton. So it should be "Hi, I am your professor Dr. Anna Bell." Huge difference.
Probably the reason for starting from 0 index was due to making address calculation using arithmetic optimized for the computer. Element address = Base Address + index × sizeof(Element by type)
Looking at this course after just taken CS50, I’m really surprised how many things are generally glossed over here, especially since this is an intro class. I’m also surprised buy some of the naming conventions. If I didn’t already know some of these things she was teaching I think I would have been lost a few times during that lecture. We spent weeks learning about data types, strings, memory, etc , and I still had a hard time following some of this. Maybe these guys have a manual or book to help out. That’s really the hard part about online classes like this. I’d still recommend cs50 as a supplement for anybody wanting a little more detailed information on the basics.
Since by default the step is 1 when omitted while traversing the sequence forward, I thought it would be -1 by default when omitted while traversing the sequence backwards, because s[6,3] is actually invalid. However one of the Ai bots at Poe explained that it is actually invalid, but to prevent IndexError they decided to return empty string in slicing for convenience, consistency, and performance. It further explained that the reason of not making -1 a default step when traversing backwards is avoid ambiguity that may lead to confusion, since the common stepping is forward in all programming languages - so if we traversing backwards we would need to be specific enough.
x = float(input("Enter a number for x ")) y = float(input("Enter a number for y ")) if x == y: print( "x and y are equal") if y != 0: print("then x/y = ", x/y) elif x < y: print("x is smaller than y", x/y) else: print("y is smaller than x", x/y) print("end") Calculates x
@27:17, If the start index is greater than the stop index, the slice will be empty, as Python slices do not wrap around and do not reverse the string by default unless explicitly directed to do so with a negative step. So, given your string S = "ABC d3f ghi", S[6:3] results in an empty string.
FOOD FOR THOUGHT? In the case of s='ABC d3f ghi' and s[6:3], wouldn't it be better return 'invalid stepping direction' instead of ' ' in order to improve the coders experience in quickly identifying the problem and to promote better coding practices?
If you look at the class on MIT OpenCourseWare, you'll see that this class is specifically for students from any academic major who don't have coding experience. But I would imagine anyone majoring in computer science or adjacent already knows something about Python.
why does the = need to be in sequence for (elif guess >= 65:) to print properly? secret_number2 = 54 guess = int(input("If you can guess my secret number, then you win a prize. Take a guess: ")) if guess == secret_number2: print("BINGO!") elif guess = 65: print("you must be a Yeti...") elif guess < 54: print("you're getting warmer...") elif guess > 54: print("you're getting colder...") print("thanks for playing...")
The textbook is John Guttag’s Introduction to Computation and Programming Using Python, Third Edition, with Application to Computational Modeling and Understanding Data, MIT Press. ISBN: 9780262542364. MIT Press: mitpress.mit.edu/9780262542364/introduction-to-computation-and-programming-using-python/ More info and 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!
this is fantastic presentation though i have a challenge of codes running and not able to download, and may be type and edit. please help me. thank you
See the course materials on MIT OpenCourseWare and save yourself some typing: ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/ Best wishes on your studies!
Hi does anyone knows how to download, if it's downloadable, or already comes integrated in the hardware PC. I'm just getting started the python language. Blessing for everyone.
Python comes pre-installed on Mac OS X, and most Linux distributions. In this course, it was recommend that students use the Anaconda Distribution to install Python: www.anaconda.com/download. For more course info and materials, visit the course on MIT OpenCourseWare at: ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/ Best wishes on your studies!
Hello there, its a great palce to learn seamlessly. Thank you so much for your support. I need some assistance with my IDE I am using sypder through a ananconda navigator and whenever I run mycode it dosen't gives me the correct output the console says it is interrupted Can anybody please help me.
Here's the Edx version (as of June 2024): www.edx.org/learn/computer-science/massachusetts-institute-of-technology-introduction-to-computer-science-and-programming-using-python Best wishes on your studies!
For SLICING EXAMPLES (s = "ABC d3f ghi", s[4:0:] does not return a value of ('d CBA'), and one cannot add 0 to the step because one receives the ValueError: slice step cannot be zero. s[4:0:] is an empty string, or am I wrong. If i types s[4:-1] one receives 'd3f gh' minus the 10th value when counting from left-to-right.
Yes. But if she was a full time programmer she would be a worse teacher to young students at that stage. Bei g a good programmer is a different skill than being a good teacher.
* NOTE: fixed audio sync issue. *
This is the best TH-cam teaching community ever.
I learned a lot. Wow
I wish if I had the access to the printed notes
@@eliasketsela9444 the link is there on the description. the 100L link
@@eliasketsela9444 they have it available on their websites, they have these presentations uploaded
Didn't fix the mic issues, however.
In a room like that a well placed ambient room mic would be sufficient to capture her voice. All the noise caused by the mic picking up her movements is very distracting.
Nonetheless, grateful to have access to such knowledge for free. Thank you!
Great class. Great presentation. Great service by the elite universities to offer this to the general public. I was about to doze off until she started talking about the purpose of the Boolean. That woke me up fast. Thank you professor Anna Bell. These professors are all so super smart and so humble. I looked up her cv and she has a doctorate from Princeton. So it should be "Hi, I am your professor Dr. Anna Bell." Huge difference.
不是零纳贝尔?
Probably the reason for starting from 0 index was due to making address calculation using arithmetic optimized for the computer.
Element address = Base Address + index × sizeof(Element by type)
Looking at this course after just taken CS50, I’m really surprised how many things are generally glossed over here, especially since this is an intro class. I’m also surprised buy some of the naming conventions. If I didn’t already know some of these things she was teaching I think I would have been lost a few times during that lecture. We spent weeks learning about data types, strings, memory, etc , and I still had a hard time following some of this. Maybe these guys have a manual or book to help out. That’s really the hard part about online classes like this. I’d still recommend cs50 as a supplement for anybody wanting a little more detailed information on the basics.
Since by default the step is 1 when omitted while traversing the sequence forward, I thought it would be -1 by default when omitted while traversing the sequence backwards, because s[6,3] is actually invalid. However one of the Ai bots at Poe explained that it is actually invalid, but to prevent IndexError they decided to return empty string in slicing for convenience, consistency, and performance. It further explained that the reason of not making -1 a default step when traversing backwards is avoid ambiguity that may lead to confusion, since the common stepping is forward in all programming languages - so if we traversing backwards we would need to be specific enough.
x = float(input("Enter a number for x "))
y = float(input("Enter a number for y "))
if x == y:
print( "x and y are equal")
if y != 0:
print("then x/y = ", x/y)
elif x < y:
print("x is smaller than y", x/y)
else:
print("y is smaller than x", x/y)
print("end")
Calculates x
what's code work to print, run run run runrun?
Hope we would get a newer version of 6.004 and 6.033
A len (a) if a = b return h len(s) s= "abc" ++i return 0
@27:17, If the start index is greater than the stop index, the slice will be empty, as Python slices do not wrap around and do not reverse the string by default unless explicitly directed to do so with a negative step. So, given your string S = "ABC d3f ghi", S[6:3] results in an empty string.
I see they caught the exception of an invalid stepping direction beforehand to convenience the programmer.
Thank you. I was just looking at it and came down comment section. It was not well-explained there at all.
Thank you. I was stuck on this forreal =_=
Great Professor of all time thank you
Skip --> 4:53 to Start String !!!
match secret:
case secret if guess == secret:
print('Correct!')
case secret if guess > secret:
print('too high')
case _:
print('too low')
NameError: name 'secret' is not defined
Amazing teacher
Watched the first iteration
FOOD FOR THOUGHT?
In the case of s='ABC d3f ghi' and s[6:3], wouldn't it be better return 'invalid stepping direction' instead of ' ' in order to improve the coders experience in quickly identifying the problem and to promote better coding practices?
wow, enjoyed every minute.
Does anyone from MIT already know python before getting accepted???
Great question
My pet knows python
If you look at the class on MIT OpenCourseWare, you'll see that this class is specifically for students from any academic major who don't have coding experience. But I would imagine anyone majoring in computer science or adjacent already knows something about Python.
Why niot? Python is a simple an easy language.I code many routines, little programs but cpmplex for embedded syatem with C,
[Len(x) len(y)] !=float len (s)++i ; a==b if b true len (a)++i return [status]
why does the = need to be in sequence for (elif guess >= 65:) to print properly?
secret_number2 = 54
guess = int(input("If you can guess my secret number, then you win a prize. Take a guess: "))
if guess == secret_number2:
print("BINGO!")
elif guess = 65:
print("you must be a Yeti...")
elif guess < 54:
print("you're getting warmer...")
elif guess > 54:
print("you're getting colder...")
print("thanks for playing...")
question = input("Enter a verb: ")
print(f"I can {question} better than you")
m = (question + " ") * 5
print(m[0:len(m)-1])
How can I get/download the text book/ handout used in this course
The textbook is John Guttag’s Introduction to Computation and Programming Using Python, Third Edition, with Application to Computational Modeling and Understanding Data, MIT Press. ISBN: 9780262542364. MIT Press: mitpress.mit.edu/9780262542364/introduction-to-computation-and-programming-using-python/
More info and 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!
In 28:04 when I create a new object with s='b'+s[1:], what happened with the memory location before the creation of the new variable, is free or not?
44:10 broke my brain
Python + windows. xD I love it. xD
this is fantastic presentation though i have a challenge of codes running and not able to download, and may be type and edit. please help me. thank you
See the course materials on MIT OpenCourseWare and save yourself some typing: ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/
Best wishes on your studies!
Completed
Very complicated to understand for me
A= have warm water dehydrate
if you want to capture d CBA from s="ABC d3f ghi" you need to print(s[-7:-12:-1]), which gets you d CBA.
@1:09:22 important
Print (num*[status])
Is there a community for self learners to seek help?
Try think python script
Great
Hi does anyone knows how to download, if it's downloadable, or already comes integrated in the hardware PC. I'm just getting started the python language. Blessing for everyone.
Python comes pre-installed on Mac OS X, and most Linux distributions. In this course, it was recommend that students use the Anaconda Distribution to install Python: www.anaconda.com/download.
For more course info and materials, visit the course on MIT OpenCourseWare at: ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/
Best wishes on your studies!
Great!
Hello there, its a great palce to learn seamlessly. Thank you so much for your support.
I need some assistance with my IDE
I am using sypder through a ananconda navigator
and whenever I run mycode it dosen't gives me the correct output
the console says it is interrupted
Can anybody please help me.
Number 1 MIT Reject
hola...cual es el codigo para la tarea propuesta por la profesora?...run run run runrun
Materiales de conferencias: ocw.mit.edu/courses/6-100l-introduction-to-cs-and-programming-using-python-fall-2022/.
Buena suerte en tus estudios!
that s great
hola...como se inserta ese tipo de parentesis?...
hello...what's code work to print...run run run runrun?
Can I buy the certification for this course on EDx or any other website?
Why would u want to buy it. EARN it!
@@ProjectBimmers True, I needed to be reminded that the reward is on the process
Here's the Edx version (as of June 2024): www.edx.org/learn/computer-science/massachusetts-institute-of-technology-introduction-to-computer-science-and-programming-using-python
Best wishes on your studies!
A= teacher?
1:08:04 does anyone know what shortcut did she use to delete all the hashtags in those lines of code?
Select the lines and ctrl+/
For SLICING EXAMPLES (s = "ABC d3f ghi", s[4:0:] does not return a value of ('d CBA'), and one cannot add 0 to the step because one receives the ValueError: slice step cannot be zero. s[4:0:] is an empty string, or am I wrong. If i types s[4:-1] one receives 'd3f gh' minus the 10th value when counting from left-to-right.
I just recall it that I have to go from 4 to 0 with step1(default) not possible so error it is
@@Anurag-lz8nz if you want to capture d CBA from s="ABC d3f ghi" you need to print(s[-7:-12:-1]), which gets you d CBA.
Try s[4::-1]
@@shivamanand611 not sure if I did already, but I will try it after work... I will let you know. Thanks
@@shivamanand611 Thank you
20:11 lol
does this work? print((question + ' ')*4 + question)
Yep
Define question
@@ibrahim-sf9od aren't u watching lec bcs if u do u get an idea 💡
@@ibrahim-sf9od go to 39:40 of the video like @Anurag-lz8nz said, you might understand my question better.
No. Ur syntax is off. Check ur parentheses
print(((question + " ") * 5)[:-1])
print((verb + " ”) * 4 + verb))
Ozzy Osbourne? 🤔
L8k
You can tell that she is a teacher and not professional full time programmer.
"Those who can, do."...
Yes. But if she was a full time programmer she would be a worse teacher to young students at that stage.
Bei g a good programmer is a different skill than being a good teacher.