# Python - Intro to Computer Science - Harvard's CS50 (2018)

Show Video

One By, printing as follows, let me go ahead and just print out X plus. Y equals. And this is what's cool now about this curly. Brace feature, you, can actually do. Not. Just variables. Names but you can do simple, operations, in there too I can literally do math inside, of those curly braces, and print, out that value, but of course this alone is just gonna literally print the curly braces what do I have to add yeah. So it looks a little weird but, this now will solve that problem, it will print literally, X plus y, schools whatever, the actual sum is. Format. Format, the following string for me good question let's do just a few copy-paste. But change the operator, here, so, f X, minus, y I want to see what this looks like X. Say, what do we do last time multiplying. By, Y I want to do that math to I can divide as well, and. Then we had one more which was modulo. Or modular, arithmetic which, recall was the % so syntactically, it's identical, to see we're just adding this curly brace notation just for the print function right now let, me go ahead and run this python of in stop hi and let. Me go ahead and do one and say. 2, so. 1 plus 2 is 3 1. Minus 2 is negative 1 1 times 2 is 2 1. Divided, by 2, is 0.5, and 1 then divide by 2 and take the remainder is 1. So, I think this checks out mathematically. But. You should be a little surprised, by one of these outcomes. Segan. Yeah. I'm getting a float like Python. Itself seems to affixed a bug. In C itself, what, happened in C when you divided one in integer by 2 an, integer in C. You. Would get another integer and what's the closest integer you can represent that doesn't have a decimal point. 0. Because C, would truncate, everything, after the decimal point, and yet Python seems, to a fix this problem and this is actually somewhat recent phenomenon, and this is a huge religious, debate as to whether or not you should just keep the historical, definition, of division. Which, is floor division so to speak or we should make it truly division, like we all grew up learning in school Python, took the latter approach and made division, mean division, through division where if you divide 2 inch you get back a float of course, this is a problem if people want to write code that assumes that it's going to be truncated, that can actually be a powerful, feature so.

Yeah. If you want to have an infinite, amount of precision, all the way out you need an infinite amount of memory and no Mac or piece of your phone has an infinite, amount of memory at some point a line is drawn in the sand and you can only be so precise, and so imprecision. Was the analog, in, the floating-point world to overflow, recall where if you only have a finite number of bits you, can do really well up to a point but eventually the computer's got to estimate, that value, for it to you because you can't represent an infinite number of values so, this is to say Python is just, as limited, fundamentally. As some other languages, like C so we've not gotten rid of all those problems but frankly, in the world of data science, and analytics, it's certainly important to have precise, mathematics, so there are solutions to this problem, but it requires special libraries, typically, use importing, something that, allows you to use as much memory as you want more, than just the default amount, of memory so, that problem, there still exists, let me go ahead and open up one other example here and. In fact in C, you'll, recall that we had this example here, in C we had a program, called, overflow. Dot C and, notice. That this code in C from, a few weeks back just, multiplied, I bye, - bye, - bye, - so it was doing exponentiation, so to speak 1 - 2 - 4 - 8 16 32 64. And so forth what happened if we waited, long enough and watched this program a few, weeks back. Yeah. We hit like roughly five billion. Or. Four billion or rather, we technically hit I think 2 billion and then it rolled over and it actually created a problem so let me actually do this let me go ahead and make overflow, so, we can demonstrate the points that you made earlier about integer, overflow which is indeed this one let me go ahead now and run overflow. I'll expand my window just so we can fit a little more in the screen and as. This runs. Whoops let me fix this here. We go, let, me go ahead and make overflow and now, one two four eight sixteen. Thirty-two and, so forth it's a little slow to start but doubling and doubling is going to get us up to a big value pretty quickly this is indeed gonna overflow once we hit roughly 2 billion why why, 2 billion, give or take. By. That value in C yeah. Yeah. That's how much an integer can store because we're calling C an INT is typically 32, bits or 4 bytes and with 32 bits you can represent 4 billion possible, values, and if half of those values are positive and half of them are negative it stands to reason that the highest you can count is roughly, 2.

And Make work rest, assured that help 50 can help with Python error messages, as well. Let's just try to parse what I do understand, coughed up High Line. 2 and module whatever, that is a name, error name COFF is not defined so what's. Your gut here what is that really what's, the explanation, for that error because coffees clearly, defined literally, with the define, def, verb, right. There on line for now. What. Yeah. I'm trying to call it before it's defined Python, is, trying to take me very literally, and it's gonna do top to bottom left to right and if it doesn't see until the bottom something it's supposed to be doing at the top it's just not going to work so there is a solution to this and it starts to get a little ugly but it's a more generalized, solution it turns out that even though main is not required, in a Python program, many, programmers, just create, one nonetheless to address this particular problem, and they specifically, do something like this def, main and then, below, it they indent everything, there and then, you need one. Specific. Feature to. Solve this problem now I've now defined main and I've, defined coffee which, theoretically, solves, this problem just, as it did in C I don't there is no notion of a prototype in Python that is not the solution to copy/paste the, name of the function up above but when I do this now, literally. Nothing happens but I did get rid of the error so. Just. Reason, through this perhaps especially if you've never programmed Python, before why, might nothing now be happening. Not. Calling, main yeah so whereas in C and frankly, in Java and a few out C++, and a few other languages main is special, it just gets called by default in Python. Main is not special I've chosen this name main just because so many other languages use it but it has no special significance if you want to call main you, have to do it yourself and so this is a little weird admittedly, but, you can literally do this down here, because, your code will be executed top to bottom left to right by, the timeline, 10 is reached both main has been defined and COFF has been defined which means you're good to go so, if I now go down here and run Python of coughed 2 now. It actually works now as an aside this, is not a pythonic. If you will most people would actually do this if the, name equals. Equals main. Then, do, this this, is for lower-level reasons, that let me wave my hand at for today but long story short the addition of this cryptic looking line solves, other problems, that we're just not going to trip over this weekend probably next so this is the common way to do it but if you just ignore that the, effect of this cryptic looking code is just to call main yourself at the very bottom of your file so when we start writing more interesting programs this is just going to become conventional, if you want to start writing functions and so forth, odds are you'll benefit, by writing a main function and putting more code in there so let's do one final example with. Coffee that, actually now, parameterize. Is the code just as we did weeks ago in scratch and see this will be coffee three pi let. Me start as I did just a little bit ago but, suppose I want to achieve this effect I want, the computer to COFF three. Times by, passing in an input I now do need, to modify COFF to take an input and in C I would have said something like int n but, you don't have to specify data, types in Python you, just have to specify the, parameter, name or the argument name so that's nice and simple and now down in here, in coffee is where I should probably say for I in the, range of, three. Do. This but, this isn't quite right what's fixed do I want to make here yeah. Now I can just pass an n so range is just a function that takes an argument that I've been hard coding is three just because but. You can generalize it within as well so, now again per our discussion of abstraction, weeks and weeks ago do we have a sort of beautiful. Version of coughing, even though it's looking way more cryptic, but by step by step by step did we get to the point of having a main function that, takes an abstraction cough do it this many times now, the implementation details, are hidden in this custom puzzle piece if you will and the whole lot of the two lines at the bottom just kick off the, whole execution of the program but that's the only stuff that's really, Python. Specific, now, yeah. Could. Use wit line. The, COFF function on line 11 yes you could absolutely just.

Do This for instance and get, rid of main again it's. Just a convention once, you start writing more specificity, cated programs with functions that you should probably introduce main just to keep it tidy. You. Come you could, do that then you're starting to be non pythonic. Like yes you could do, Koff 3 but. People, would look. Askew, at you because it's just not done that way, that's, what pythonic means yeah. Other questions. Not, in this case so the order now is okay. Because. First. Python is seeing here's the definition of main okay I got it and then it's saying here's the definition of Koff okay I got it but it's not actually calling those functions, yet the Python errors are thrown only at what's called run time the running of the program's time which, means only when main is called does, Python actually execute. Line four and then, see ooh I need to call a function called COFF but that's okay because it saw it earlier when it first read the file top to bottom so. It matters when the functions are called not, where they appear, per se in the file the. Order in which they're called other questions. All. Right. Yes. How. Did I define n is an integer this is what's nice about Python, if you want a variable or a parameter just start using it without, mentioning, its data type so the fact that I put in in parentheses. In this function means hey Python let, this function take an input called, n and it can actually be any data type in float, string, or even something else it's up to me to use it responsibly as. A number, and to call it responsibly, with, a number. Good. Question yeah. Is. Indeed. Possible for a variable to change type a good observation. So yes, python is not a strongly. Typed language so. To speak C is strongly typed in that if you make something and in it is staying an int forever, Python, is loosely, typed whereby, X can be an int initially, but if you really want to turn it into a string you can but. The the, convention there would be yes you can do that but, don't do that so python has the frankly, the sort of arrogance, of being sort of an adult language like yes you could do that but just don't like why do we have to protect you from yourselves, and so in that sense you need to be a little more responsible, about it but again there are arguments both ways that, reduces, potential, bugs that C would catch for you and this is where humans start to disagree, about the upsides, and downsides of languages, whether a language should be strongly, or loosely or not even typed at all good.

Observation, So let's look at a paradigm that was super common in see when we wanted to do something again and again to see how it actually is a little differently done in Python now let me go ahead and declare pot uh create, a file called positive, PI and go, ahead and write a program. A little quickly here so from cs50, let, me go ahead and import, get int so we can get integers from the user let me go ahead and define a main function, that simply does I which. Will be my variable gets, a positive, int, and asks. The user just, as we did weeks ago if you recall for a positive. Integer and then, just goes ahead and very boringly prints, it out so, that's all this program does and let me go ahead and just from recollection though. It's totally fine to copy/paste this cryptic looking string, we would just be remiss, in not showing, you how, most people do this so. If i do this this is a complete program except, for the fact that what, does not exist yet. Get. Positive int probably, does not exist just as it didn't in week one because we have to invent it ourselves get, in exists but get positive int does not and just for demonstration, sake let's try this python a positive, pi notice, we have name error get, positive int not defined okay so we can fix that we can literally define, or def it so get positive, int, it's. Gonna take a prompt, from the user just as it did weeks ago the string that you want to show to him or her and now, let me go ahead and get. A positive integer what type. Of programming, construct, did we use in c to do something again and again and again a. Loop. For sure but more specifically, to, do something at least once and then maybe again and again and again if they don't cooperate. Do-w

2019-02-03 13:06

Show Video

This is the seventh video in the course. Check out the full playlist: https://www.youtube.com/playlist?list=PLWKjhJtqVAbmGw5fN5BQlwuug-8bDmabi Here is a forum to discuss CS50 with other people from freeCodeCamp: https://www.freecodecamp.org/forum/c/harvard-cs50

Is CS50 library comes by default during python installation?

Nice

Thanks a lot sir for posting free videos so that we can learn without disturbance. ❤️

Nice video banatay ho

How can I get continue to this series..?

Thank you

I need this kind of coffee. He speaks like a machine. Love it

Why do he use get_string instead of just input

because if you just use input, you've to convert it into integer using int() every time you need to input a number because by default input takes string argument. So instead he use get_int or get_string from cs50 library, they wrote this library to help beginners understand programming .

Why are you reposting CS50 videos? Is this even legal?

TECHTORMA I understand that they got permission to which is good. But reposting someone else's vidoe is without permission is illegal, I'm sure you already knew that

CS50s courses are some of the best introductory CompSci tutorials on the web reposting them actually gets them the audience that they deserve.

They gave us permission!

the best teacher in yutube I guess. I don't know why this video has less view. thank you also for helping me to improve my English .

Awesome lecture . Very lively

why this video has less views

Can't we use input function

because they are using cs50 library

Thank You!

CS50 taught Python? :D

Learn Java. You get the benefits of compiled code and it's easy af to write.

That burp rofl 37:55

much appreciated, i have learned alot from whole series

What is the speciality of Computer Science in Harvard?

Thanks. Actually I know it is special in Harvard But wanted to know in details like is there some special reasons or somethings they do for the students which make Harvard special?

Frankly, it's undoubtedly Sir David J. Malan! Cheers!

exclusivity

This guy teaching so faster as specially for talking

Thank you very much appreciated

Thanks a lot sir!

what just 144p :')

+freeCodeCamp.org okay We will wait ... and Thanks for these Lectures :D

YouTube is still processing. Check back in a few minutes.

Awesome video! Is it true that this programming language is going to take over PHP in the web development?

Python too slow for web server side if with heavy users....

Not gonna happen. Main reason is speed. PHP is way faster than Python. Slow language is more money. Maybe JavaScript can take over. But not Python. Python is good for data science, web scraping and machine learning and desktop app development, automation and of course Linux system administration. But when it comes to web PHP (LAMP stack) is still the king. Plus 32% of the internet is powered by Wordpress which is written in PHP and 80% of the internet powered by PHP. If you wanna develop web apps then learn PHP, JavaScript, HMTL/CSS, SQL and MongoDB. PHP 7 has changed the game. Everybody has been saying since early 2000 that PHP would die soon. Everybody was talking about Ruby On rails( Ruby language) would kill PHP. But in reality Ruby nowdays is dead language. Almost dead. Almost nobody uses ruby anymore. Last 20 years PHP has been almost always in top 10 languages. Plus PHP was specifically desinged for the web and python is general purpose programming language. So when it comes to the web PHP kicks python's butt every single time.

Probably.

It's great... I'm giving it a like without watching it caz i have a strong belief on this channel.. I love this channel and its stuffs.. Subscribe my channel plzzzzzz

you guys are great

When he does the "cough three times" example, with "i in range 3" - how is the programme counting? I would have thought that you would need to say define "i = 0" then "print cough" then "i =i+1" - how is that working here?

range(3) makes a list, with a range of numbers 0-3 but not including 3. The "for i in" loops through this list.

People who are saying David J. Malan speaks fast, you should watch Brain Yu's lectures (from CS50)

I would like to say thank you for both the course and the work behind!

Their needs to be a microphone for students so we can hear

Learn Python AI for Image Recognition & Fraud Detection > Learn TensorFlow and how to build models of linear regression. > Make an image recognition model with CIFAR. > Make a Credit Card Fraud Detection Model in Python. Learn how to keep your data safe! http://bit.ly/2Ah8ITk

There are many things, but one simple reason is funding. The department has more funding and better industry and research connections than most universities. For standard courses like this one, there is not much different. But if you do expensive research or need to work on something requiring special technology, there is bigger investment and capability for many of the Harvard programs. +Tahmid Bayazid

Awesome video, thanks so much for this freecodecamp (and harvard; class acts both). One small suggestion, and please dont take this as a complaint becuase it really isn't at all -- for lectures like this you should think about having a second camera focused only on the board/screen, or just get a copy of his presentation, and have it up on a little side window when it isn't in view. Thanks again, great work yall

Get_string sounds like it complicates it more.

Well-planned, well-rehearsed, and a smart hard-working man on top of his game. He speaks so fast, but really nothing he says is wasted, and rarely does anyone need to rewind. I guess there are still good teachers out there in this wicked world.

+Steven Platt Thanks a lot.

In text you wrote "This video is lecture 6 of Harvard University's CS50 2018 course". But I found it in Lecture 8. 6 is week not Lecture. If I am wrong, sorry for this.

It is lecture 6. It says so right in the video at 0:50.

Isn't he using Python version 2?

Why he talks fast, so annoying, hard to concentrate on what he's saying, makes me breathe heavily

1:37:51 for i in range(3): print("#" * 3)

I guess this is 2.7 version of Python ?

Jazz Professor Edwin no python3

thought it was 3... but still pretty new to Python

Thanks bro

search cs50 2018/2019 in youtube & u will get the whole series of video

I use python to help me with my homework

well this class is mainly for Harvard boys ,who just changed major XD

+A Nur idk.. i got used to it, it's my first language

Louis-Philippe Duval Java is not a beginner friendly language in any way

+A Nur n brah... Java is the currently the world #1 most used language... it has the highest amount of jobs! double amount of python...

+A Nur no...i learn from ground up..from reading the textbook...it made me a better programmer, since it tells u everything, in great details.. n what r the possibilities of u can do with them...it's easy if u know them all

Cen Jake it could be easy if you power through it. Python and JS have to be the most beginner friendly.

I will be so helpful if we learner guys could get cs51 too. It would be so greateful

Cen Jake I can agree with that, it’s a highly sought after talent

+A Nur yeah hell no denying in that... but im also saying Java is the #1 language right now...which also mean its the one to go for the money, n it's not that hard tbh

Cen Jake I’m not arguing it doesn’t but python is also one of the quickest growing languages because of the rise of Machine Learning and AI, my whole argument was that python is a lot easier to learn than Java.

Free code camp is my number 1 spot for anything relating to learning new code. You guys make it soooooooo easy!

+Jon Clemens yes it is 3

no it is 3.6

Love that teacher ! I wish got admitted into Harvard:/

how did these kids get into harvard they dont even notice the huge things missing in the hello world program in python

also cant even tell how many arguments the print function was taking in maybe they are just shy but my god

thank you for posting this kind of course for us poor people who want to learn python

He speaks like a machine. I loved it! hahahha I discovered this playlist in my homepage yesterday and I'm enjoying every minute of it. Thanks!

This is my type of lecture. Straight and fast. I will do my Master at Harvard one day.

+A Nur JS is harder than Java though .. I know both

+Louis-Philippe Duval java is not compiled .. not like C. It's compiled to bytecode and needs virtual machine to run. And it is definitely not as easy as python and very very .. .... ... .. verbose. If I should take a pick between C and Python I would pick Go.

+Eric Highsmith yes it is 3

+Daniel There's a language for everyone. C is compiled, python is interpreted and Java runs on a JVM. But if you are really a god, you would know that assembly beats everything!

This teacher is smoking the good.

+Delilah Lah yeah these madafker make fake news n u believe them.. Ranking: https://www.tiobe.com/tiobe-index/ Java availble jobs: https://www.dice.com/jobs?q=java&l=New+York%2C+NY Python availble jobs: https://www.dice.com/jobs?q=python&l=New+York%2C+NY

+Cen Jake https://www.techrepublic.com/article/forget-the-most-popular-programming-languages-heres-what-developers-actually-use/

U can simple stand where ur laptop is we dont want to make drama in each thing, acting

Why do you guys started with learning C and then going over to JavaScript and then Python? You should go from easy to more advanced programming languages i.e. 1. Python 2. JavaScript, PHP,.. 3. C, C++, C# and not the historical, chronological way.

You‘re exposed to more low level details, so you really get a feeling for what is happening under the hood. This is better for problem solving.

why is 10 + 1 is eleven? 39:57

from ___future___ import braces

As someone learning java in school and at home because i want to study computer science, i am kinda surprised by this. Is this lecture about the diffrent syntaxes or is it about the principal of how it works?

Why is that? It's not hard and quite succinct of a video.

yeah ... nice teacher but the problem is I dont want to see him but the stuff on the screen. they should get some inspiration from the stanford lectures ....

Best? He's too flamboyant, not everyone's cup of tea when it comes to instruction

I went through this without knowing it was lecture 6.I'll give myself a pat on the back.

37:12 what a revolutionary idea

Python is pretty much looks like a modern day version of RPGLE in fixed format

This guy is super good. Can learn a LOT from him. Noticing that he still looks at the source code written on his hard copy papers makes me feel better about googling so often during my workflow.

I see how he’s head is so big :)

I already know python, but this was so good I still watched it!

This was so cringe

+A Nur Every language is beginner friendly, the only thing that isn't, is peoples mindsets. I learned C++ as my first language, people said it was stupid, but I easily learned python and java afterwards. Good luck going from python to C++.

main, lol.

Teacher is on something for sure lol

I am new to programming, is it normal that I don't understand this lecture

Am I the only one think that programming is hard to learn and understand?

+Yuri Reis Well, everybody messes up sometimes :)

A powerfull feature :D

​+MaxDeveloper Well, a lot of Youtube backend is in Python (although it's converted to C i believe) , also there are others like as you said Javascript and C# ASP.NET which are plenty fast. Although yeah, PHP probably not going anywhere soon and has its advatages

Algum BR presente? xD

39:32 lol

WHY IS 1 + 10 = 11?!?!?!?!

yes its normal. if you have not covered the basics, like the language of programming, then it can be overwhelming. Be stubborn and stick with it. And don't pay attention to self declared geniuses They are either lying or have the necessary foundations

Around 34:00 Wouldn't you just use + instead of a comma to concatenate the strings without adding a space.

"historical, chronological way"? No, they started with Scratch to get the idea of programming languages, then went for C to get how the memory manages data and low-level languages operate and then went for something that has more complex usage like AI or web apps. I think it makes a lot of sense. Learning simpler language first is good too but it's better when you understand what's really happening.

Watch the video in 0.75 speed. If u don't have an IQ of 160 u won't be able to process the info nearly as quickly as he talks. No way you'll understand if you're truly completely new to coding.

Jesus that lecture hall.

Ban Hammer Thats Harvard for you

You gotta, I also reccomend making physical copies too and flashcards. Helps a ton.

I dropped out of Harvard and joined pump university

I thought this said Harvards CSGO...

I really love that the lecturer uses student questions as a teaching opportunity of something tangential, just to make the question important even if not necessarily relevant or directly on-point.

I didn’t go to a top university but i went to a university and did not know anything about python but i always program with java and c++. I dont think Harvard CS curriculum has any uniqueness compared to my school subject content. It even may not be good as youtube programming tutorials

And youtube tutorials could finish this within 10 minutes and people can put it into practice promptly

I literally read the thumbnail as CS:GO Harvard University....

You... need help.

2 hour video to tell you how to convert a string input to uppercase... Harvard in a nutshell

+ModestDeity What space? The space between the comma character and the { character? That is a literal space character. Again, the comma is *not* a valid concatenation operator in Python.

+magno I'm talking about an alternate way to solve the problem of the space that uses fewer characters, which, as stated previously in the video, is more "Pythonic".

+ModestDeity They are all placed within the same pair of double quotes. So they are all parts of ONE string only. There's *no* concatenation whatsoever at all! The comma is just the literal character comma.

+magno there's the string variable s, and there's the string hello.

What are you talking about? There's no concatenation there. There's only one string in the argument of print.

Yes, but he's showing print formatting, not generic printing. Say your print statement has multiple variable inputs that you want to include, instead of separating the string every time you want to insert a value, you can just format it all into a single string.

He can be the new 21 joke

There are 10 types o people: a) the ones who can answer b) the ones who cannot

This is how you get in Havard, take notes xD

Try cocaine ;)

+Hea Mees I doubt anyone uses asp.net like that for web development anymore besides people that were using it before. PHP isn't going anywhere, I agree with MaxDeveloper. Also, let's not forget python was used on Instagram and it is still widely used and still growing, slowed down but still growing as the world grows and moves forward. A language's use only comes into play depending on what you want to do. Like PHP wouldn't be used on AI/machine learning based apps.

i hate big classroom, i'd rather just watch a movie instead of study in a room like this

Why is this recorded like a movie lmao?

Steve Jobs, that you?

What a time to be alive , look mom I made it , I am going to Harvard

the whys 1 plus 10 equal 11 bit made me laugh so much.

This guys not giving up on that hairline eh?

+TehUltimateSnake loool the fight is yet to be over

Fancyslimshady that widow’s peak is on the forefront of the battle for his hairline

wow

is this what all halls at harvard look like?

Computer Science: Global Offensive

+STC Nope, did the same.

Eric Yuan the students already have C experience, so they can follow. I don’t think this is meant for brand spanking new coders.

lol no many people recognize it's hard. It's not too hard to learn but very hard to be excellent at.

TheAverageCoder cocaine?

TehUltimateSnake exactly man

Amazing work man!

why did you use CS50 module, instead of the built in input() function? also if you hated the f notation to format a string, i.e.: f"Hello {n}" You could also use: "Hello {}".format(n) instead

Look ma your money got me a degree on something I never even wanted to be

+IncinerateZ yes

+Jim Bob Youre working on a program that searched documentation for you?

+IncinerateZ im working on a program that does just that :)

There's literally no programmer, as good as they may be, that doesn't search for documentation or help from others.

Funny

This guy is ridiculous. Pretending to do live code... he fakes it... doing live copy

can understand why he uses get_x when python already has this fuction u just need to: x = int(input("blabla")

is there a way to get follow up to this video :?

..." why do we have all these darn languages already ? " - ржалподстолом )))

('hello',n) it work also delete {} and format

students probably know all these in pre school

вот так лекция, препод такой активный, рассказывает игриво, а не тупо диктует конспект

NewYork haha

nah

+Mr. Aniket pip install cs50

slow down you go to fast before you colaps on the floor , and talk normal not like a robot this is people. Nobody can remember what you said 5 min after, you are all over the place.. Harvard is not for learning like this go home and use google instead in normal pace.

15:38, I feel you man...

I joined the School of Hard Knocks

Ramit Inyah the only thing if u are a programmer is to learn ‘how’ not ‘why’. Eg the guy literally said ‘why is 1+10 = 11’ bruh i questioned myself at that moment HOW he is teaching python

They explain the "why". Anyone can learn "how", but they're not training technicians, they're training scientists.

which IDE is it ? Visual studio

cs50.io (It is Harvard's web IDE)

Is Harvard hiring entertainers as professors now? Weird

Look pinball heads if u dont get a simple joke then u r all taking this too literally and seriously i dont want to do it and whooosh every single one of you

mathieu langevin https://github.com/TheRealG420/Tic-Tac-Toe with little help i made tic tac toe, AND NO i am still in college and learnt computer science for 2 years and we only learnt visual basic and basic python

+TheRealG ''the only thing if u are a programmer is to learn 'how' not 'why'...''. Say no more and go back to your forums. Clearly you are NOT a programmer or a shitty one.

David puts really a lot of effort in his lessons, much respect.

+Mr. Ankit Indian pip install cs50

40:00 omg xd

He's probably the best computer science lecturer going and gets a lot done in 2 hours. You wouldn't have 1% of his ability to deliver this high quality content

​+MaxDeveloper Well, a lot of Youtube backend is in Python (although it's converted to C i believe) , also there are others like as you said Javascript and C# ASP.NET Core which are plenty fast. Although yeah, PHP probably not going anywhere soon and has its advatages

40:17

Geezus, those benches look uncomfortable af. With a 50K tuition I would expect at least a DXRacer chair.

+TheRealG yikes

this guy is 100% on cocain

Check my tutorial also i had updated module 1... Very soon i will update module 2

Because 50K annual tuition requires some show and entertainment.

he's just passionate bro

Yeah. I don't see why he is not simply using input. It's basically the same syntax anyway

Must be nice to have class with such a great lecturer.

Harvard is overrated.

Playback .75, he talks so fast

I love this lecturer! His teaching style is similar to what I experienced at Stellenbosch University

that's Harvard, lot of budget :-)

The students sitting in the class are so dumb.. THEY DO NOT DESERVE IT

http://www.threelly.com/ With Threelly AI; YouTubers, Educators, Governments or Corporations can now extend their YouTube capabilities; getting a brand new, unique and distinctive way to standout from the crowd, WOW subscribers, learn quicker, discover new insights, search deep into their videos; thus making any YouTube Channel - more FUN, RELEVANT and ENGAGING for viewers.

lol

@Mr. Ankit Indian pip install cs50

Ohh man 69 dislikes

@TehUltimateSnake loool the fight is yet to be over

@STC Nope, did the same.

@TheRealG yikes

@TheRealG ''the only thing if u are a programmer is to learn 'how' not 'why'...''. Say no more and go back to your forums. Clearly you are NOT a programmer or a shitty one.

@ModestDeity What space? The space between the comma character and the { character? That is a literal space character. Again, the comma is *not* a valid concatenation operator in Python.

@magno I'm talking about an alternate way to solve the problem of the space that uses fewer characters, which, as stated previously in the video, is more "Pythonic".

@ModestDeity They are all placed within the same pair of double quotes. So they are all parts of ONE string only. There's *no* concatenation whatsoever at all! The comma is just the literal character comma.

@magno there's the string variable s, and there's the string hello.

@IncinerateZ yes

@Jim Bob Youre working on a program that searched documentation for you?

@IncinerateZ im working on a program that does just that :)

@Eric Highsmith yes it is 3

@A Nur Every language is beginner friendly, the only thing that isn't, is peoples mindsets. I learned C++ as my first language, people said it was stupid, but I easily learned python and java afterwards. Good luck going from python to C++.

@Delilah Lah yeah these madafker make fake news n u believe them.. Ranking: https://www.tiobe.com/tiobe-index/ Java availble jobs: https://www.dice.com/jobs?q=java&l=New+York%2C+NY Python availble jobs: https://www.dice.com/jobs?q=python&l=New+York%2C+NY

@Cen Jake https://www.techrepublic.com/article/forget-the-most-popular-programming-languages-heres-what-developers-actually-use/

@Daniel There's a language for everyone. C is compiled, python is interpreted and Java runs on a JVM. But if you are really a god, you would know that assembly beats everything!

@A Nur JS is harder than Java though .. I know both

@Louis-Philippe Duval java is not compiled .. not like C. It's compiled to bytecode and needs virtual machine to run. And it is definitely not as easy as python and very very .. .... ... .. verbose. If I should take a pick between C and Python I would pick Go.

@A Nur yeah hell no denying in that... but im also saying Java is the #1 language right now...which also mean its the one to go for the money, n it's not that hard tbh

@A Nur n brah... Java is the currently the world #1 most used language... it has the highest amount of jobs! double amount of python...

@A Nur no...i learn from ground up..from reading the textbook...it made me a better programmer, since it tells u everything, in great details.. n what r the possibilities of u can do with them...it's easy if u know them all