 I am not sure if anyone would like to leave this long description, but I do not have a sense of labels and I do not want to teach you something. I guess my goal is to motivate you enough, so that you are encouraged to learn by yourself. So, one of the problems that I face, so I am not married, right, and I want to find a very rich girl to marry. So, let's use Python to solve the problem. For your case, you could find a rich guy to marry. Then life just becomes easier. So, oh shit, okay, what's up? Just ignore the what's up messages. Okay, so how many of you guys have used Python before? Okay, awesome. Okay, so... Okay, fine, I can try to make it larger. So yeah, I hope this session is interactive. So yeah, whenever you have questions, comments, or you are stuck somewhere, do ask. Every time you ask something or answer something, you'll get a chocolate. Usually it works better with guys because girls are conscious about weight, but yeah, I couldn't. Okay, so this is better. Okay, so since you are not familiar with Python, you wouldn't have Python installed, so I set up the environment for you. Just go to this link, bid.ly slash I wanna marry a billionaire. The Wi-Fi password is on the Wi-Fi, so the Wi-Fi is the idea in that string. So, okay, let me open sublime text and write it bigger. bid.ly. Can all of you see? Okay, better? Okay, so when you reach this page, raise your hand. Oh, awesome. How's the rich guy? No, you don't get any chocolates. Yeah, so anyone else reach this page? Okay, who said yes? Okay, I'll finish everything. Okay, just one last. Anyone who has not reached this page? They have not reached this page? Oh, nice. It's slow. Okay, let me try to... So do you see something like this? Okay, now be nice. Everyone create your own folder. Do not write on other people's folders. Why I already have last folder there? Because I was trying to do some tests. Yeah, just click on new, create a folder. Click on new, create a folder. Let's say marry. Okay, so it creates untitled folders, right? Click on them and then rename. Okay, when you have created your folder, tell me. How do you open this? So who has created the folder? Who? Dude, relax. Oh, you created? Actually, open your shop, please. What's your name? Sharon. Oh, Cherry. Oh, Cherry, okay. Okay, who has not been able to create folder? I only see one, two... Okay, I only see around 10 names. There should be... There should be around 20 people. Who is having problems creating the folder? You cannot create folder? So, okay, just go here. Click on new. Click on folder. It will create an untitled folder. What you created? Name is RTS. Someone is celebrating a festival outside. So who doesn't have a folder yet? Don't worry, if you see any untitled, just rename it. Oh, okay. Yeah. So you go to the folder and you click rename. So you guys don't... Awesome. Oh, you can get a chocolate. Anyone still not created folder? Guys, if you don't create folder, you get a chocolate. So anyone... Dude, I don't answer guys anymore. Okay, anyone next? The... Okay, now the... Okay, now you go to your folder. Okay, whose folder should I pick? Who is... Who is Caroline? Oh, okay. I'll go to your folder. So you click a new Python 3 notebook. Do you see this? Guys, some response interaction. Okay. What do you need one more time? Just click on new then Python 3 notebook. Done? Okay, so now you'll see this notebook, right? And this is my notebook here. So if you go to Shubham folder, you can just open this in a new tab. You will see... Yeah, you will see my notebook. So you can just copy paste code from here. Okay? You look confused. How do you copy paste? Oh, okay. So you go to... So you go to this home folder. You see all the names, right? You go to Shubham. You go to... You see Coding Girls Workshop. You open this. You right... You control click this or right click this. Open in a new tab. And then this will open in a new tab for you. So... So yeah, this... This... I have already written some code here. So it will be easier for you to copy paste. You won't have to copy everything. Oh, so you see this is... Let's say this is Caroline's notebook. So I go here. I... So let's say I want to run the first line, right? Click here. Here. Paste. And then I click on this and I run. Simple. Anyone didn't understand? One chocolate. Okay. What's up? Okay. Oh, you go here faster. What now? Yeah. What's that? It's a manual. Oh, why is it so crazy? No, no, no. Yeah. So this is Caroline's. Okay. And then you go... So this is Caroline's notebook. Yeah. So you just copy... So... So... So... So... So... I'm not even... Anybody else need help? Yeah, sorry. So don't start copying, just see here. This is X, look. These are the ones that you are. These are the ones that you are. These are the ones that you are. Yes. These are the ones that you are. You go to your home, so you have to go to the other side. So this is a good one. This is a good one. Go ahead, take care. You have to be careful. Okay. Okay, now you can go to the other side. That's not right. The next step, you have to be fast. Everybody is still coming to this step. If you allow, you can watch the videos. Yeah, just open this. Just see how it looks like. Admire the beauty of my lighting. So, who has had open here? Everybody with me? They're rolling yellow if you don't get used. Okay, are we here? Oh my God, people have... People have changed my notebook, no? Okay, the server is... It comes slow, but okay, we will manage. I should have... Okay, so everybody should see something like this. Should see a new notebook, so... You go here, this is my folder. You should not have created these copies, but if you have, it's okay. So everybody should see this. Is everybody here? Anybody still not here? We'll get a chocolate. Anybody? Okay, cool. So now, let's get to the problem. So if you don't understand anything, if you think the presentation is boring, if you think there's not a good enough problem, then do interrupt me. So how many people are not married? Okay, who is married? Yeah, okay, suppose you want to marry again. Everyone grows old. And not everybody can be as handsome as me. But then you want to find the people who are the richest, right? So I just went to this Forbes billionaires list. Yeah, Forbes has... Okay, I went here. But you see, it's very hard for me to find which ones are girls, right? I mean, for you guys, it's easier because most of them are guys. So I want Python to help me. I want it to filter out the girls and then I want to see their images so that I can find the most suitable partner. Okay, so... Okay, why does my notebook keep changing? So first, I will try to get the web page in Python so that I can extract the information, right? Because you see, that page had all the information. So to do that, you have to do this. So in your new notebook, you can write this. Everybody sees this. But you see, Python says request is not defined. Python is almost like English. So you just say HTML is equal to request.get, write the URL, and you should get the HTML source, but request is not defined. So you come here and you say, okay, import request. Okay, now you try again. Copy this. Okay, now it doesn't complain. Now we go to... If you don't understand something, ask me. Yeah, no, you go at the top. You see this play button? Yeah, press the play. Okay. Yeah, so you see something, right? Yeah, no, you don't have to. So request is the library that provides you the ability to query the page and to get the HTML. So you see here, I imported request. I didn't have request installed. You guys don't need to do this. Then I just get the HTML source, and then I just print the HTML source. Everybody with me? Anyone confused and wants chocolates? Yes, you look confused too. Ask me. Could you explain this culture like HTML request gets? You don't need to understand, just... Okay, if you... Yeah, this is not a class, right? You don't have to understand everything. Just request.get, get is a function, and then you pass in the URL, that's it. If you don't understand how it works, you don't need to worry, I can give you an intuition. So I go to this page, right? Then I press enter. So it's loading the page, right? That is exactly what we do, but in code. Understand? What does request do? Request allows you to query. So let's say you want to get a page, you want to post a page, you want to open Facebook, but in code. Okay. Because let's say you want to find out the... Let's say you want to find a partner from a social circle, right? Then you want to go to your friends or friends, because you think that you will have something in common. But if you do it manually, then you'll have to go to each friend, you'll have to stalk each guy individually, right? But better, just let Python do it for you. So I mean, instead of this one page, you can have many pages, and then you can get all the information. So it's like a Python doing the stalking for you. Is it like a function? Yeah, get it a function. And request is a library? Yes, request is a module. Yeah, a library. You okay? Okay. And why have you used this HTML and RISC source in the school text? No, this is just a variable. You can name it blah. Then the HTML and RISC source in the school text in line 11. So that is because... No, dot text. Oh, this is just a variable name. You can name it anything. You can name it... You can name it stupid Shubham. Okay, I need to run this again. You see, it still works. Is everyone with me? Everybody downloaded this? Okay, you should ask. What's the problem? How do you set this? How do you set this? How do you set this? How do you set this? How do you set this? What do you do? How do you set this? Yeah, now you can... Now you can name the HTML source or text. And so what is the source? And the school text, right? So you just get the text part of this. What's the next? You can just open the last one. No, no, okay. You can open the last one. Okay, anyone else? Yeah, it goes the right way. Okay, who else has not got the... I can't furniture we have. No, I'm already there. Because... You only have to do this if you're not in the picture. Super, sorry. So they're in this case. Everybody has a page. You can enter as much as you want. You can now write in code request. And now we have a second. So you can now write in code request. Yeah, you can now write in code request. Yeah, you can now write in code request. And as you... You ask everyone to go to the activity page. If you request a page. They will... So here... If you don't see something. You can now write in code request. So actually, this is the exact same as before. Now, anyone else? Yeah, we're getting there. Guys, anyone else? I haven't got this. Everyone here? Yes. Okay, awesome. If I forgot to give you chocolates and you ask me something, we can do it later. Okay, now... So this is the exact same thing as what you see here. So you see this? You see the first lines. Dog type HTML. It is the... It is exactly what is here. So I said... So what happens is... The server returns you... So when you query the Forbes website, right? The website returns you this shit. Which is very hard to understand. And then the browser. Because it helps you by translating that to this. Okay, that is called the HTML source code. So if you see my variable names, right? That's why they were this way. But you can name the variables anything. So now, if you see... If I query for Bill Gates... Wow, the music is... Okay, so... So on a typical website, right? Let's say... Which website should I open? Give me a favorite website. Facebook. Facebook is also not nice because it renders by JavaScript. BBC. Okay, so you see Donald Trump here, right? Yeah, he is the character. You see Donald Trump here as well. So you see Donald Trump marches to South Carolina when? Here Donald Trump marches to Escalolina when? It is just that around here you see title. So it's title text and that's why it appears this way. So essentially your browser is converting that to the nice things that you see here. So what if we wanted to get all the news headings from this website? We have already got the... Interrupt me anytime if you are confused. We have already got the source code, right? We could just find all the names. So in your case, names of billionaires. And then automatically get that information, right? Okay, so let's go on. Where is my... Okay, so... But again, the next problem is this is very hard to pass, right? How would you pass this information? So again, just like request helps you get some page from the server. This library helps you... This library is beautiful. It's beautiful and it's called beautiful soup. This library helps you pass the garbill junk and convert into something meaningful. So can everyone just copy paste... Can everyone copy paste these two lines? Yes? Okay. Yeah, it's taken. I'll just take some time or just try again. Okay, so everyone copied these two lines? Yes. Who has not copied? Why? What's the important? No more unencrys... Where's the important? No one, this is invalid syntax, not important. Are we getting the same problem? Oh, you are still on the previous one. You have to go slower. Yeah, yeah, okay. Not hard enough. I am important. You are not important, right? You are getting it. Okay, so... Now just copy those two lines. No, not this one. The one's there. You can also copy from my notebook. But you understand what these two lines do, right? Maybe it's more efficient than we have ever. We can post to the Facebook events group. So you don't need to run around. No, don't bother. I find it like that. Because then I have to check Facebook. Then I have to come to you any day. Okay. Oh yeah, you can do either there. Anyway, it's okay. So this is the page with the list of all the billionaires you potentially want to marry. And request.get gets the information from the server. HTML source text. Because if you... Okay, then I'll just explain it to you. Okay, can. So you see this line. It goes to Forbes. It gets this page and it gets the stupid shit, right? So let me just run this. So print is for printing anything. So whenever you are in doubt, you don't know what it is. Just print it. So you see it says response 200. So that is because this is not the text form yet. It just means that the server returned your response. And it was successful. 200 means success. How many of you have seen 404? HTML error 404? Yeah, that is because sometimes the server is not able to get what you're asking for. So it says not found. 200 usually means success. 301 means redirecting. So now I want to... But I don't care about the response code, right? I care about what the text is. Because that has Donald Trump or that has my future girlfriend there. So then I have this variable. I say HTML underscore source, which is the response dot text. I store it in a variable and then I just print that variable. So now... Caroline, you are clear on this? No? So ask, ask, ask. No, no, no, you don't have to have an idea for coding. That's the intention of this class. Okay, okay, let me show you something else. Let's say you change to facebook.com, right? Because Amman likes Facebook. Okay. Because my URL is wrong. No schema supply. Oh, I see. So you just go to HTTPS. So this is how Facebook looks like. Oh, shit. Okay, we have to wait for it to... So I change this to facebook.com. You can change it to whichever website you want. So this is what facebook.com looks like. If you open facebook.com, you rightly view source. This is what you will see. Because my potential girlfriend is hidden in the Forbes list of billionaires. That's why I went to Forbes.com. So you are clear, right? What request.get does? It goes to the website, it gets the HTML source and then HTML source dot text converts the source to text form because... and then you just print it. Caroline, clear? Okay, anyone still has doubts on this part? No? Okay, awesome. So yeah, then... Now the next problem is how do you find the... what I showed you, right? This also has Donald Trump. But how do you find it from this garbled text? Right? How do you tell the machine, yeah, I want to get this. So this package helps you there. So just copy paste these two lines. It will become clear what they do later. Everybody copy paste it and run this? It gives you import error. It gives you import error? Did you import from BS for import width? So what is the error? It will give me a import error, but then I copy that also, and store it in the source form. What is the error? No, no, no, this is not an import error. It's a name error. So then I wrote this fine as well and then I started... No, no, no. This name error is called HTML source text. No, no, no. So anyone else copy these two lines and still having errors? Yeah, so if you get that error, right? Then you go to my... then you go to my notebook. Next time I'll set up a cluster this time. So you go to my notebook and then you do this. PIP3, exclamation mark, PIP3, install beautiful soup book. So this is for installing. Run this and then run this again. Yeah, then it should be fine. Everyone with me? Yes. Yeah, who is having trouble now? No one wants chocolate? Yes. Yeah, if you want to remove the error, right? It's a lot of beautiful soup just there. You see, it says if you break it off, you can stay in this. You fill soup and water on the side. HTML source text, form, I'll stay in the final line. Go to the end, after that. You see, it says here. This is a marker line. You can scan off. You copy this. Okay, who wants chocolate? Okay. It's fine. Both of them didn't get it. No, I didn't get it. Yes. So you already did it. Do you just want to check? Or do you just want chocolate? Yeah, you don't need to know. You don't need to know. It will be here later. So you see, it goes for some magic that serves the purpose of building for your life. Like, let me just get this. No. This is just a variable. You can change this too. Do you see that? Yeah, see, you see, you can do that now. Yeah, it's fine. First you have to find a variable that serves you. You should see the variable here. So you understand, it's just a variable. Good. You don't need to see the variable because it serves you the power. So these are just kind of, you don't want to contact the variable. Do you see that? This is going to be pretty good. So yeah, it's 200. Let's see. Everybody's problem solved or someone wants chocolates? This is correct. Guys, guys, guys. Ice Lens, sit down. Okay, so now, now let's proceed a bit. Because a lot of people have problems as to why we write these two lines, right? So okay, now you print this. So after you have written these two lines, copy this line, print soup.pretify and then print this. Because you see this, okay, let me show you why I ask you to do this. So let's say, insert, sell above. So you are wondering what this soup is. Soup is right. So whenever you are wondering what something is, just print it. So you see this is essentially it. But if I write to print soup.pretify, then it will sort of give me in a nice format. So what this soup does is soup is a way to understand the garbage text that the server returned. And then soup lets you find. So let's say I ask, so soup is a already request and it lets me find suppose I want to find Donald Trump, right? So I can just write soup.find some text and it will find me that. So we will use that later for finding our partners. So everybody can write print soup.pretify get the nice output, feel happy. Okay, so now let's go to the... So how many of you are using Chrome? How many of you are not using Chrome? Please download Chrome. Who is not using Chrome? Yeah, download Chrome. Okay, you have you have five minutes. Why? Because Okay, so let me show you why. So someone asked why we download Chrome. So in Chrome you can inspect this. So if you right click and you inspect, you can see this. So you know that, okay, let's say I want to see here. So yeah, I can see what this thing is in text. So yeah, Chrome just makes your life easier. Unless you love Safari or your boyfriend works at Apple just download Chrome. Okay, Mozilla Firefox or Chrome should be fine. I'm just not that familiar with Safari. So who is not using Chrome now? Why? Okay, who is not using Chrome or Firefox now? They will get a chocolate as well as not be able to proceed. Well, you are different case. For you, you means your partner. Okay, everyone with a computer okay who all the people who have a computer any anyone of them is not using Chrome or Firefox. Okay, awesome. Okay, now now we get to the fun part, right? So now how do we so you see the problem that I had was in this website I cannot find everyone from top to bottom seems to be a guy seems to be very old and like doesn't doesn't seem to match my dating profile. So I want to automatically extract all the names and ask Python the question. Okay, tell me who who here is see they have the age, right? So who here is let's say Mark Zuckerberg should be here so you see 31 I mean still still a lot older okay, you are not married Mark Zuckerberg anyway still a lot older but like I want to do this automatically I don't want to scan through the 500 billion as right so that's why we use so a soup cancel so here I do okay, I go to this website then I say okay so this looks like so you see everything that yeah then if I click so is everyone on Chrome now? okay can all of you right click and inspect element so you just right click and you will have inspect anyone who is not on the inspector no you both don't count anyone who is not on the inspector wants chocolates if you want chocolates and are not there then don't call me just ask me to throw it okay so if you are all on the inspector right whoever over Mark Zuckerberg click inspect you will see it comes here then if you select this element right you will see this gets highlighted you select this one you select this TR element this gets highlighted you select TR this gets highlighted so we know that so just by looking at this we can say that this TR class is equal to data somewhat refers to each row right because when we hover over it then you see this this okay fine okay so all of you open the inspector right I asked you last time open the inspector or not right click right click and inspect inspect yes it should be the last option right click on your over there inspect okay okay it's going down to the place where Mark Zuckerberg provides Mark Zuckerberg or anyone maybe you like Bezos anyone who is not on the inspector okay who is on the inspector only 4 people are okay 6 people are on the inspector you are on the inspector okay just one chocolate okay who is not on the inspector okay you understand okay never mind so you see now we are on the inspector who is who here and then how to select who so you see you saw this here right click no no not the wrong click which is here so you see an SSTV so you sort of see something similar okay now enter your audience anyone else not on the inspector who is on the inspector it's a binary question yes okay can I proceed okay so you see so if I just change this right so you see so you see this every TR row stands for so when I select this right this sort of refers to Bill Gates then when I select this this refers to Karl Laws this refers to Warren Buffet so you see every TR corresponds to a new person right so you see so now we want to find where do all these people live so you see T body so if you select this then every so if you select this table tag everyone can find the table tag it's above all the TRs this one did you find this table tag so you see it's you found okay everybody found the table anybody found the table anybody didn't find the table and wants to play now enter your friend everybody everybody found the table can play around with the DOM this is called the DOM so you can even see right where does the facebook share button live you right click here this is the facebook share button everybody with me on table can play around with the DOM who is not having fun playing around with the DOM who is lost nothing just play around with it so it means that this is the part of the DOM so should I move forward should I move forward okay wow everyone is bored that is nice okay now you use this now you use the soup variable so just just write this and print can everybody run this yeah anybody has problems running this yeah so you see you will get a list that contains two tables one table is still here and then another table starts from here you can do other stuff also let me reload so that I can so you can have find image then this gives you all the images on the page I can have I can have I can have image I can have soup.find all like so you saw td right do you remember the td element here this td right there was it do you remember our wait wait wait do you remember our friend tr that we can just cycle through and see the different billionaires so you can also do this soup.find all tr then this gives you all all the rows everybody here to know but you see yeah you don't need to learn pretty printer now this is just if you want to make the list look better okay but the problem is this right so if you let me show you here so if I click if I view the page source you don't need to do this just understand this here and if I do table yeah so this is sort of where our table starts right you see the first row which is position name but it does not contain if I search bill gates I cannot find bill gates here but if I search bill gates here I can find bill gates here even though they are the same page the problem is that in many pages the content is loaded after the page loads so if I so for BBC's case if I want to find Donald Trump I can find Donald Trump here that's why Facebook was not a good example because even for Facebook many times you will see that the Facebook page loads first then if you want some additional content it takes time to load that is because once the page loads then they call the additional stuff because let's say who has more than 1000 friends here who has more than 1000 Facebook friends here okay who has more than 500 Facebook friends here okay so if Facebook starts loading all your friends at the same time then it will be very complicated for them so can all of you copy this um let's go to oh no this is not my file cancel okay if you see this you are in you will see it in my notebook instead of pp.pprint you can just choose print it will take some time because all of you are accessing okay can all of you run this yes run this run this guys stop changing my file can all of you run this do you see this garbant text just copy paste this text in your editor notepad plus plus or whatever I want to show you something so if you search for bill gates here right you see you can find bill gates if you search for mark zakkaburg then you can find mark zakkaburg everybody can get this piece of text you get it from here you execute this command anybody not with me should we copy all of them no no no just this one don't do pp.print just type print I ran over that part just this one oh control a select this here select press here control a control c control b just copy the whole page and write into ms word sublime text whatever you want everybody with me who has not been able to get this text who has not been able to find this akaburg copy this but instead of pp.print that's it I don't know how why do you run on your own run on your own copy this into your own don't run here copy this into your own copy this oh I see oh because pp.print is not defined so I don't run no because I I still do what pp.print is not pp.print pp.print is not pp.print pp.print is not pp.print pp.print is not pp.print ok ok ok copy this into word or something and see if you can find it there ok ok ok ok ok ok ok ok ok ok so you click here then you will see ok who who wants more chocolates ok you just want to take a picture come on this text contains this page right so later on if I want to find my partner I care about the page so this is the page where I want to so because so yeah that's why now you can have this page now you can move this page ok ok ok ok ok ok ok ok ok ok ok ok ok ok ok ist wanted to do this ok ok ok ok ok ok ok ok do have this page right no if you had to search on the course Prodel panda website you would spend hours studying go you write a script then you can find it very Yes. I am going to text. This one, this one, I will not. No, I mean so you see this one. So you see everything that on the table you have a list of all the tables in this page. So copy this. Okay, so I will just explain the real table. Yes. So whenever you have some HTML there and you want to find all the tables, so just change this to image. And then find all the images. No, no, not image. It's called IMG. Yeah. For the IMG. Now you can just go to this. You can just copy this URL and you can open this image up. Why, why I said IMG? Because you can check the library. No, we are not here. We are looking at this page. You see it's called IMG. IMG. So. Yeah, you guys just look at this and you can just copy it. You can type it in the language, right? Once you write this script, you can do it very fast. So let's say you wanted to write a program, copy all the images from the website to some folder, right? Then you can find the images. So it's all the images. And they don't know how to pass this. Oh, you go to the source code of the code. Okay. You go to the JavaScript. Okay. And I will go first. And then at one point you will see that I will do this one. Okay, everyone with me? Okay, so, what's up? As questions. Okay, let's, let's move on if you have questions you can ask me. Yeah. Anybody is asking? Okay, so now you see this piece of text. It has the information of all the billionaires. It contains their age. It contains their name. So actually if you manage to process this piece of text, then you will be able to find your partner easily. And if, and if you, and the list on this force billionaires page is very long because there are lots of billionaires in the world. Now imagine if you were manually searching. So I just copied into someone's word file. It was 280 pages. If you were manually searching, it wouldn't be, it would take ages to find a partner. Right. So that's why you use, yeah, don't go. Yeah. Whenever you want to find a partner, use Python. Yeah. Then. Okay. Now you want to pass this, right? The problem is that this piece of text looks so ugly. Now you want to pass this into some format and then get the information out. So that's why there's this package called JSON. Just import this package. Do JSON dot loads. And then the same, the same thing that we did earlier. You see at the top we had request dot get dot text. Okay. Who knows what request or get does? Yeah. You answer the question. So see request dot get loads the page. Then you, you, you again load the page. You already did this in the previous step. You click dot takes. What does dot takes to guys answers? Wow. I can read this. Just catch. Okay. Then you JSON dot loads. So you see this and you see this. It is different, right? So it just converts to a nice format. So you can do JSON dot loads. Put this in this variable called binaries. And then don't use pp dot p print. Or if you have to use pp dot pp dot p print, just prints in a nicer way. So if you want to set up pp dot p print, you just import p print, set up the indentation. So you see here the indentation is four lines. Every time it goes to the next thing. And yeah, then you just use pp dot p print. So maybe you guys can set up p print first. Do import p print and then do pp is equal to p print or pretty printer. Indent is equal to four. You can set indent is equal to 10. Up to you, like your comfort level. Because whenever we print, right? Then our printout is in this format. But if you do pp dot p print, then it will... So let's say I do this. No, no, not this one. It is still working on it. Yeah. So you see it's just much nicer. Like it follows the indentation and it doesn't... So yeah, pp dot p print just makes the output nicer to use. But if you are a ninja, you don't need it anyway. So just move on. Okay, but whether you use pp dot p print or you use print, just do this one. Import json. Get the list of billionaires by doing json dot loads and the same thing. And then pp dot p print. You can actually, if you are a... Yeah. So did everybody just load this json in a nice way. So the json will say, okay, for each one it would be in a nice object notation. It would be country, age, yeah, and all this kind of stuff. Okay. Yes. Which one do you want? No, but you should come on. No, that's because you use print. If you use pp dot p print, then... Not pp, pp dot p print. Yeah, it would be nice. They put it in the way. They say that they're not... She p is not defined. So if I can test it. See what should it do. Yeah, define pp. So this is my notebook. You will see where it will be. You can find the pp dot p print. So it will say p p dot p print. Oh, because... Okay. So just like print the label, it all is printed out nice. Whenever you want to end house, right? You should print. So which one I asked you to print? Yeah, just print this. Then you have to print without any... See. Because I want to get to the right, the right start. And don't leave. Yeah, yeah. Because it's structuring. Right? Don't you have to do what I just said? And if... G, you can change the course. So... Oh, you didn't... It is a setting. Yeah, I said that. Yeah, but you didn't... Okay. And what's the... Oh, Jason has a... Jason has a format that... Format? That the internet uses for translating text. Let's say you have Facebook, right? And... Let's say this is Facebook. And... And then you are trying to accept Facebook. Then you ask Facebook, let's say, I'm giving my messages from this friend, right? Like, you have to show a message, but it's... Facebook passes you the information like this. So this is just a format. Because it's like a key value here. It's like a list of keys and values. See, one key and the value. Okay, okay, okay. Okay, okay, okay. Okay, okay, okay. Okay, okay, okay. Okay, okay, okay. Okay, okay, okay. Okay, okay, okay. You cannot call Facebook. Yeah, did everyone manage to load the interfere on in a nice format? Okay, so you see this list, right? Okay, now, let's get to the one which works. Okay, now you see this, this function. So, now comes the interesting part right, the billionaires already contains the billionaires already contains a list of billionaires nicely formatted for us, so you see this is one element this is one element then it has a comma then this is the next element then it has a comma so it is a list of billionaires essentially right. So, go to my in 34, so then I define this function find the ladies and it has a billionaires and this function takes billionaires underscore list as parameter and then I just check if because some of the billionaires right they did not mention the gender. So, so it was throwing an error, so I just have a yeah if billionaire gender is female because I am only interested in females and if you see here you would see that they have the gender is defined as m or f. So, you see every billionaire has this key called gender and that has a value m. So, so just by checking when this key is f I know that I found a potential match. So, this is this is how it looks like for for one billionaire. So, if you compare x gender equal to equal to f equal to equal to just does the comparison right. So, you check equal to equal to f it says true. So, x is the billionaire I put I put square brackets and then I mention gender and then I just check if it is equal to equal to f. So, if I do this function returns me this function returns me everyone who is who either does not have a gender or all the ladies it is too annoying. So, can all of you copy this function and then and then print the list ok what could you change if you want to find guys what do you think you will change no no you already answered change the gender. So, can someone come here and edit this for me ok you will get 5 chocolates 6 chocolates 7 someone must you edit this and and and and correct this ok then I just pick randomly oh you want to do this no don't don't do that here do here because I don't know how to do it. So, I need your help I was joking about 7 chocolates ok fine fine 7 chocolates. So, can I change the names as well. Yeah you can change the names oh fine my man I see what you did there instead of fine term man. Super Actually, you don't need to change the variable names they are just very good. Yeah fine, that's it right. Yeah right. Wow. Ok, so can all of you do the same thing for a man I mean she already did it ok now suppose so it's everybody clear about this function do you understand what it does it just checks ok. So, what does for billionaire in billionaires list to it says that. So, let's say you have a list of people right then it says 4 percent in this list of people. So, it goes for each billionaire one by one. Why there is a number 21. That's where none. Because we are trying to find the people without gender and the figure number 21. Where? Oh very very hard to go through everyone just no no no I mean I can how do I do this. And you see a none printed it then is it ok show me. Oh that's because oh you did not return you have to return something otherwise it doesn't know it just returns by default it returns nothing you have to return the list ok. So, let me explain the function again this is just the function name right you saw she changed from find the ladies to find my men then this is the argument that it expects billionaire's list. So, that's why it's generic I mean tomorrow if I pass it another list can also then this is an empty list because now I do not know which ones are my men yet right ok it's weird to say my men yet I do not know which ones are my matches yet. And then I iterate through the list that was passed to me I check ok because suppose I remove this right let's try this. Suppose I remove this then you see invalid ok can anyone explain why this happens why do you get this error oh you didn't take your chocolates you look confused you cannot find gender yeah why do you think this happens this is what I am asking you see I run this program and I get this error right here if you want to see what I change I just put hash hash here then I change the ELIF to IF understand she looks like she is she ok not ok yes. Yeah I know so you right now suppose ok what is this now suppose you come on this hour you know what he does right. Yeah. Yeah so if this condition is true then it executes the statement otherwise there is nothing to do right you see you get a clear agenda why do you get that yeah just now it was right because I commented on this yeah so why do you think this error happens. Hey tutor like you should maybe you should report it to me because you already solved it yeah since she created the function you should ask her for that. No that's why this is meant for people to look for knowledge so yeah so what is the problem this one is not a crime right the error tells you because you try to put in this man but here you have this thing. Oh gosh. Yeah just try to see the error and change this to this one yes. Yeah I know cannot find gender. Oh like this time. Oh right from this time. Yeah. Yeah why do you think this happens. Okay can anyone help me out here why why do you think this key error gender happens. Yeah some of them do not have gender you can take all the surplus. Now you go around and help everyone so you see because not everyone has a gender if you see the list right so let me go through that list again. You see this guy does not have an age can you find an age here. No right but you see this guy has an age so because Forbes does not have all the information for everyone so that's why welcome again so that's why you have to check so that's why I put this check. Suppose I don't put this check right for every billionaire it tries to find the gender but some of them the gender does not exist so it gives a key error so that's why I have to put this check and change this to else if and yeah then yeah then it doesn't complain. Is everybody clear. This week you always have to find the negative. What do you mean negative. Yes it's a good practice to always check because you do not know what list of function will be passed right so in this case so yeah it's always good to check for the negative and handle that and then do the rest. It's a good example if at first I try to find the list of checks and then if I keep changing so you will keep adding on the same list or you will always have to reset. I think it will always reset. Okay so is everybody clear about this. Did everybody find the list of men. Oh you have none because you have to do that. So you see this function right you pass it something it has to it. It has written L because my variable is called L. Okay anyone else has any doubts about this. You can fix your problem by. No it does not happen. No this is just printing. So that's which line. Because you see your name you have to put a full and after name. See what I did I just put a. Oh you have to put an L. So what happens if it does not happen then it prints this but it still comes to here you want to prevent it from coming here. If this is true then it executes that otherwise it executes this. Make sense. Good. Okay has everybody found their partners. Anybody still single. Yes. Yeah. Yeah. Okay who is still searching for the men here. Oh wow too many. Why do you think that happens. So you see Python gives you this line. So we just get to the list of men. Oh. Oh you just buy this not work and that works. Yeah. Oh. Because even though you found your list of chicks here you never return this. Yeah. You understand what it does right. Yeah. Yeah. So those are the people that are out there. Because that's why they don't have that. Yeah. Yeah. Okay who is still searching. Okay everybody got the list of men right. Okay let's move on. Okay now what is the next criteria in your ideal person. Okay the person in the blue t-shirt. Yeah. One sitting next to you can you call her. So now we filter people by gender right. What is the next criteria. You look for your match. Age right. Okay so can all of you modify this function to include age. What will you change here to. So you see the age here right. Yes. No I mean you can copy paste but yeah try to do if you can do it. Yeah just change that. Okay so who wants to has anybody. Okay just try the age part and then. Someone will get seven chocolates. So you understand what your task is right. So you have filtered people by gender. Now you modify the same function. To also put age. So all the all the males or females depending on our preferences. And people within a certain age group. Sorry. Oh yeah. I do not say anything. Okay so what does this code do. If it does not exist. Then it does not exist. Because for most people if it comes to this kind of culture right. Then it says. If gender does not exist right. This means gender does not exist. Else it means that if condition else. If this condition is not true that means gender exists. Then it takes in the gender. If the gender is mean then it adds the DNA to the resource. So now. No one knows. What does the code do. Yeah the code is correct. So the code is a means to like go back to this. Because it was a big step back here. The code is a way to go back to this. Go back to this is where this happens. No one is there. So now you. So now this position is true. When I was somebody is a man right. No. No. So the ground gender is here. If the ground gender is not exist. Then it is very easy. If you have not seen it before. No it should be good. So when someone has a gender it comes to that. If you like it it comes to that. That you are not exist. Because now you are exploring everyone with your mind. Because everyone with your mind comes to this. Yeah you like it here. Can you write the statement for. No. No. No. No. No. No. No. No. No. No. No. No. No. This is the. So the change is. Yes. Yes. Yes. No. No. No. No. No. No. No. We have passed that. Yes. That is because you have to invent this properly, it has to be invented at the end of your life. You have to invent this properly, it has to be invented at the end of your life. No, it has to be invented at the end of your life. It should not be invented at the end of your life. What is the harm in that? Why do you think this happens? See the error. No, it should not be invented at the end of your life. See the error. Why do you think this happens? You go. Just like you check for gender, right? You also have to put an error check for age. Because some people do not have age. So can you complete this? Just like gender? No, you already know what it is. You can see it is in 4 after 4, right? Because it is invented again. Because 4 runs to the right, you have to put an error check. You should go up from the level. So because you have to invent it here, then by using the power it should be invented. Because you are doing this checking for a bit, you have to put an error check. Okay, did anybody figure out the age mark? Yeah. Can you modify the code then? Yeah. Yeah. See? Yeah, because you have to return. You have to return. Just a minute, just a minute. Yeah, just a minute. You have to return this. You have to press return and then list it. If you do not return, then it does not get passed to the calling function. What happened? What can you not understand? Return just means that... Okay, so you see this here, right? Here we are calling this function. Right? But if this function does not return, then this does not get done. It will not show. It will not show, yes. If you like return... Okay, this is superman. This is superman. Power, yeah. So power. Yeah, superman. Superman. Superman. Superman. Superman. Because this is called superman. Yeah? So what's your name? Superman. Oh, awesome. Because it is called superman. Because it's for a new machine. What's this guy for? This guy, how much does this guy... How much money does this guy have? Position 1.301, that's why you can see if you just look at the page, you will never find it. Now you will find your leverage. Okay, can you go there and monitor the machine there? Okay, we have a winner for the... Use your resume, 30. Just press cancel. Do I need to reload? No, no, no, don't reload, don't reload. Just cancel and just keep pressing cancel whenever I want to. Yes, because your... No, it's because we've only done the... It's just go to the first billionaire and then it will come up here. Then it first goes to the entire list of billionaires and then... Yeah, I try to remember this. Yes, do you have identification markers? Where are you? Yeah, so figure this out. Which line is this? Oh, it's because you see the notation is wrong, it's a square. You see this? Yeah, it's here, it should be square. When you're trying to find an identification marker, don't worry about finding it. Yeah, it's a good factor to add it to the channel. Yeah, like this. Yeah, this is a good factor to add it to the channel. How are you doing? Oh, yeah, I just command this. Oh, how do you know what this can be? You know Python before, is it? Uh, little. Why? If I can command this, it's a row that... Because not everyone might have age? Oh, yeah, yeah, so here is billionaire, yeah, I know. Okay, so now, guys, can you explain? You have to explain everyone how this works. Just a change in the two? Yeah, you have to explain why and how. Do help me a bit. Okay, so uh, okay, no, no, no, no, no, no, no, is he explaining. Command this hour? No, he's not here. Do you want to continue? Okay. So you just change the gender to age. So you just change gender to age, and then the billionaire doesn't have age, then it will continue to the elite. See people understand me. So you see she found two people who are below the age of 30. Can you please cancel? So she found two people below the age of 30. So now she's understood, and this is her code. So why does this work? Yeah, if the billionaire doesn't have age, then the zest continue means that just continue. If the billionaire's age is smaller than 30, then you will end to the list and at least you print the list of the billionaire. Who are you talking about? You have to apply a check for gender. Apply a check for gender. Yeah, she did not do for gender. I hope you don't mind. Okay, take seven. No need, just one. No. They will drive in pain. No, because you never apply this kind of gender. I don't. No, you call this something inside your phone. Is it there? It should be there. So in your code, do you take it to account the gender? No. So the list of yours is men and women. Yes. That means your criteria is not correct. See why it happens. Excuse me. It's given to the other. Okay. Excuse me. No. Yes. This is okay. It's okay. It's okay. It's okay. It's okay. It's okay. It's okay. It's okay. Yeah, so it's the same as gender, right? Yes. The way of the bag. Wow. No, you are checking that at both. Too many from 25. How many? I knew something. Yeah. How could we count how many feet? I'm learning. That case, there's... Oh, okay, cool. So if I just, um... Oh, you can do it. 25 to 15, that's too much. I think... What does this pen mean? If you want to know... It's not a... It's a list of shapes. I think it's... It's like... We're going to... I don't understand what she said. Yeah. She's taking... She's taking more people while you're in the company. She's taking more people while you're in the company. But do you think there's a problem? Yes. What's the problem? Gender check is not there. Gender should be in... So can you put the gender check? It's not working. This one is... It's not working. At the end... We're trying... If we want to do those together, I'm very worried. I don't know what the people think they mentioned. Oh, because you think this... Let's go... You see, this one doesn't have any... So I don't know whether... All these are like... Is it... No, you have to... You have to like... I think that we don't want it to be absolutely... A new talk and Judy will know about it. So she's trying to learn about it. So who are they? Oh, I don't know what they come here to do. Do you know what they come here to do? No. Who do you want to find out about it? Yeah. I don't know what they're looking at. Inside the farm, we're trying to find out what they're looking for. This is the one that they come here to do. Yeah. I don't know what they're going to do. They just... They'll just pop that in. Oh, we're done. Okay. Thank you. Okay, we're going to make them write a real time work. Yeah. It's just a little bit of a... It's just a little bit of a... It's just a little bit of a... It's just a little bit of a... It's just a little bit of a... It's just a little bit of a... It's just a little bit of a... It's just a little bit of a... It's just a little bit of a... It's just a little bit... Yeah. Yeah. I'd like to ask a question. Yeah. Oh, just type, they're called. They are a number of boyfriend meetings. Yeah. But I want to print the land in a text, in the stream, in a sentence. So after you assign it, you see that it cannot convert int to stream. I want you to enter there, so... ah, cool. SDR, yeah, put SDR on the laptop. Okay. There are 16 written comments. Turn the page, right? You will have a list. Yeah, find out from the three particulars. Yeah, we will again. SDR, we will come here, we should, we should. We will, we will, we will. How can we just... we don't want... Oh, but you see, you just comment on the... then instead of... No, because you also don't want to print. I don't know what to do. I mean, anyone should write it down. It's just a fine point to write. It's not there, it's not there. Anything else there, it's not there. I don't know. Who is Frank Wang? I don't know. No, because you commented on the print statement. You see, the hash, if you comment on anything with a hash, it does not make a difference. So, hash is used for things like, suppose someone is reading your code, right? Then you type this hash. Who hasn't got age working yet? Age. There must be something. It's working, right? No, it's because of 51. Maybe they like it more. There are lots, like between 25 to 35, there are 16. Oh, so you start chasing them? Yeah. Can we visualize them? Yeah, you can, that's the next step. I want to see... Jen, have you finished the major part? Okay, find out the pictures, girls want the pictures. How do you count? Okay, so this is the... There is a function for learn, L-E-N. And then L-E-N, you just use the list name. So you can count how many are hitting your criteria. I don't know. I think you're like this. Because you're in his code. You copy his code. I don't know. Then you change it to a similar one. This one. Yeah, I'm not in the color. You copy this one. Then you change it to a different one. Which one is yours? How many guys are you from? I don't know. I don't know. You can count how many to provide for... Why can't I select the... Negative. Not in there. If you do not have this, you must... You must provide a solution. I don't know. So you see the problem is... Okay, so this means gender reservation, right? If the gender does exist, then it happens. This means that if the age doesn't exist, or if the age exists, it happens. There is no real deal between those two. As long as they satisfy the... Oh, explain to everyone. List the ladies for this. Guys... List girls. So we are checking whether age or gender. If any of them is not there, then it will continue. And then it will check the age criteria. There is then 14 greater than 30, and gender is only... And then we are putting it into list. Okay, nice. So you see, as long as the age or gender is met, then it depends to your list, man. If you want to do this right, you put L, sir. So you see the difference, right? She put an AND. You all know what AND is, right? AND means that if the age is less than 40, and the age is greater than 30, and the gender is there. If you don't put these three conditions together, then like she discovered, you will not... You need to put all these three conditions together. Make sense? Does it make sense? Because age might not exist. You see, gender is not exist. I see, nice. I don't know what you are getting. I don't know what you are getting. I don't know what you are getting. I don't know what you are getting. So just remove the spending. Yeah, you need to cater for the condition. But the friend statement doesn't need to be there, right? So I just put some position like age. Because I need some statement. Something like that. Okay, can you... Can you write a submission now and explain it to everyone? It's just different. No, no, no. What's your next? You go. No, no. Otherwise, what's the point? You know what? You can leave it there. Yeah, you just... Yeah, yeah. You found them with this? What is the next criteria? You have the age, you have the gender. You have the gender. Whether they are married or not. Yeah, that's what she is trying to do. But she has disappointing results. What? Her results are disappointing. Backspace is the lead in backspace. How do you do that? She... At the married status now? Marriage. The mic is working. Is that mic working? No, for her. Why still? Can I just take it? But this one... There's no marriage status, right? What's the name of the marriage status? Okay, so who has still not done the gender thing? Who has completed gender? Okay, it's a yes or no question. Who has completed gender? Yes. Who has completed age? Yes. Who has not completed age? Who has completed age? Mom. Yes. You still have so many problems. No, that's because... That is... Respect for mom. Where's the code? Can I use the mouse? Can we present the data? At least the data in the table? Yeah, you can. Google... Google Pandas. Python Pandas loading. Just Google... ...loading into a table. What is this? Can you... No, I think there are no girls under. It's fine, guys. Can you put age to be 76? I'm fine with my age 76. At least rich. I don't think you can find 18 to 26 and in a billionaire list. It's fine, yeah. Maybe you can be... I'm just trying to remove the output because... So, this is so... Okay, so this one, right? Oh, now I should... Oh, because it's okay. So, first time, if age and gender doesn't exist, then it just brings the name, right? But here, as long as the gender is man, you already find it. So, you have to put the anti-condition code. Because... So, you understand, right? If either age or gender is not in billionaires, then it doesn't go here. But here, as long as the gender is a man, it depends here, right? It does not check for age. Do you understand my point? Because I want it... No, why is this? No, no, no, you see, right? If the age or gender doesn't exist, then it brings this. If age or one of them exists, and the gender is man, then it depends here. So, it does not talk about age. This person might have aged more. But as long as the gender is man... I don't know. So, remove that? Remove what? Remove this thing, this new life? No, what... Okay, so... What's your age criteria? Okay. So, you see, you just pretend. And here, okay, try to run this. Works, right? Yes. No. And then... You get me? Yes. Yeah, because this and that. Yeah, there's just the left side of it. See, it's the left side of it. What is it? It's the one of us, isn't it correct? There's no one who is... I don't see... But he's a guy, right? Were there people? I only find... Can anyone check if there are any guys who are single or divorced? We can't get... What age are attributes? I don't see it in the... in the very books at all, marriages. Yeah. When I look at one guy, it doesn't say anywhere I don't know. No, because... See, see if you... Marriage. Take a check. Maybe we can do that. Cities and children are not in the United States. No, I mean, this is for you. This is my name. No, this one. Okay, okay, let's see. So, if age are not in C or gender are not in C, right? Oh, so you should... Okay, why do you have these two? Why do you have these two separately? Why do you have these two separately? Why do you have separate conditions for this one? Not equal, it's... C is the strength. Okay, let's remove this one. Okay, let's remove this one. I want to be sure that... Oh, this cannot be tried. How can this be? Yeah, where did you get the mildness in this one? Yeah, it's not there. No, it's not there. Okay, it's there. No, actually, you can do that. It's from the first page, right? You can go to the second page. No, nobody can get the URL, right? Oh, okay. Yeah, so... No, so you see from... Yeah, you will have to... You will have to put the name, put a dash between the two names. Get this. But if you want everybody's one? Yeah, then you just iterate through this list. You already have a name, right? You just put a dash between the ones. And then you just... And you get the URL. So, can you do this as an exercise? For all the billionaires, I created this URL. I created the URL of the profile. It's simple, right? You see everyone has their name, right? Could you help me? You just put a dash between them. Small headers, small letters. And you just attach Hope.com profile to the Polish. You just make a list. Just like now you were making a list of billionaires, right? Instead of making a list of billionaires, you make a list of strings. List of your... You just manually find all the URLs from those papers. No, it's not automatic. You already have the list of billionaires, right? Okay. Okay, guys. Some people wanted to find the marital status, but it didn't exist. So, if you go here, right? If you go here, you can see its marital status. But you cannot see it in the table. So, one way to... So, one way to solve this problem is... Do you see this URL? Can you construct this URL just by knowing its name? How? It's just the middle bit. It's just the middle bit. So, you just change the middle bit to fit the name. How would you change? So, its name is Bill Gates, right? So, you convert a space to dash. You convert the first letter to small and you convert the first letter of each word to small, right? Yes. You just convert the first letter of each word to small and you put a dash to it. And then you attach the form.com.profile.com to the beginning, right? Then you can loop through all the URLs. You can get the information from each one of them. And then you can check for the marital number. So, as an exercise, can you just generate the URLs for each person? No, just like now you are generating a list of billionaires, right? Now you already have a list of billionaires and you don't have URLs to the profile page. So, for each billionaire, can you generate the URL for the profile page and just put it in a list and you have to output the list? Who is not clear on the question? Okay, yeah, of course. Nothing is clear. Oh, so because if you want to play the marital status, right? This marital status doesn't exist on the first stage. So, if you want to get the marital status, you have to go to this URL. You have to get this URL. Yeah, so if you want the machine to do this automatically, the machine will have to generate the URLs, right? And you see, it's actually easy to generate the URL. It is just a combination of the things. Put dash in place of the spaces. You see, right? They go in the end. Yeah, so I just generate the list of URLs and then you can add another program for each. And if you don't have to do this now, but later on for each URL you get the information from this URL. We checked by the Marital Arts. What is it? What if it's Chinese name? Yeah, you can still. So, you can write a program to split the string. Split the name into power. Many parts are there. So, who knows how to split a string into... split a string by space. Okay, let's say I give you this, right? SDS is equal to Bill Gates, Huang, Liu, Jian, Zipeng, right? Yeah, this guy has a lot of Chinese friends. So, how would you split this by spaces? You just do s.split and then then you do join, give me a while. Okay, so this is how all programmers find answers to the questions. Python 3 Oh, wait, I have an idea. Oh, rather than doing this, right? So, see, this way you can split. But if you want to do s.replace you replace the space with dash, right? Then then you want to do this. You want to convert to lowercase. So, all you have to do is test this. So, what this does is it replaces all the spaces with a dash then it converts them to lowercase. Almost it's like English, right? Yeah, so generate the URLs. Go through the list of billionaires and generate the URLs. Yeah, you have to just follow iterate through all the billionaires for each billionaire to get the name. You see each billionaire has the name, right? Okay, this. All billionaires have name, right? You see name, Carl Bennett. Just like you got the gender or the age to get the name, right? Name is a string. Then you can just do s.split.lower s.replace.lower One more time. Okay, who doesn't understand has doubts, doesn't like this problem? Has given up on billionaires already? Anyone stuck at a previous step? How many? Go to the most stage. Two. Four. Why? No, no, no. Then you just so I think it is the same ladder. You want to learn Python or not? Give us a special case. Okay, can you? Why is it very simple? No, you actually don't need to go to the stage because you see all the meters are on the stage. So you need to find the just generate the list of URLs then from each URL you can get the name. That should work like this. Yeah, it seems bad. You never call the function. Then you expect it to be bad. After we get the UIL then after we get the UIL what we do? You go to the Bill Gates URL and you you can ask your fellow she knows how to get the UIL. Go to right click on Bill Gates no, right click on Bill Gates go to forms right click, right click. Copy link now paste somewhere you see you just have to you just have to put the replace the Bill Gates part. Okay, anyone finished? Printing the UILs? No, no. Do the UILs first. Do the UILs first. Do the UILs first. I can't find the UIL. It's just in the language. It's already impossible. You know the problem, right? I can't find the UILs. I can't find the UILs. I can't find the UILs. No, make UILs. Make UILs. Make UILs. Make UILs. Why can't you make it from the this side? How could I name the UIL? No, print the UIL with the name. Plus. No. I can only get the list of UILs but I don't know how to associate with the name. Why are you so sad? Can you show me? Can you show me? No, I have no idea. Then you should ask her. It's my job to give you an idea. I import. Wow! Okay, this is very good. So what do you not understand? Import defines... So import just... You are requested. So this just get the list of... This just go to this UIL, get the output and give it to you. Then json.lose just put this in a nice format. Then you print. So this is the output. Now if you look closely, this is the list. See this is one object. Has a comma after it. This is another object. Has a comma after it. Something like that. So it's a list of billionaires. So now you write this function and this is the list of billionaires. This is your guy, right? List man. For me girls, right? So I go through each object in the list. You saw so many objects in the list, right? Under this curly braces. For each object, I check if the gender is female. If the gender is female, I add it to the list. That's all. And then I just return. Oh man, so many errors. This happens because it's not everyone has gender defined. If it doesn't have gender defined, then it would be like what is gender, right? So here you put a check. Are you understanding? Oh nice. See. This lady is fine the lady is billionaires. Why is this like this? Why do you think this happens? This happens. Because you see this is capital M. See now you have all the guys. Right? Then here you put the conditions and stuff. So I can specify 18, 20, say something like that. Do you understand? From here I define gender. No, no, no. This is nothing. You can remove this. This one is just some separate. So I just want you to show this is one billionaire, right? So this is how you can check. If you check this to male, it will be false. False, right? So do you understand how this works? I know this. Now don't look at anything else. If you have to find out the billionaires who are male and are age less than 30, how will you do it? Do it, do it, do it. If you cannot do it, ask me. Could you help me? I don't understand why. I'm just trying to get the URL for this. Why do you join? Use that one. Then this. False? So you work less? Okay, can you go there and... Why? Age 30. Yes. Why the URL can be composed by using this? So I directly say I want to append it in this way because I find that I can take... I have tested that I can take this directly. So if I... But I thought... I couldn't append the list. I'm not sure if my savings is correct. I'm trying to build the list right. No, it's an indentation issue. See for the indentations that I got. Somewhere you have to append the list. Wow. Got it. But how... How many? How many? I just get the URL. I won't get first. So you... Okay. So what does the URL for this? Age 30. Age 30. Age 30. Age 30. Age 30. Age 30. I can send you the code. What are you trying to do? There to a... Yeah. You place whatever spaces there are. You see, name contains the content. So you place whatever spaces there are attached. And then it just comes to go. Simple, right? Yeah. It's... It's working. It's working. How did you get it? I don't know. Yeah, we understand why you don't remember. You don't have to remember anything, you know. We print outside. So we want to debug. Okay. No, I cannot read. Hmm. The list check is not there. Okay. No. I am going to do it. Yeah. Where was this? It's so irritating, right? Yeah, I know. Yeah, I know. There must be something. This one, right? Where was this one? Where was the function? After we get the URL, then find URL. Oh, it works. It was working, but it was far behind. Now it's working. It was always working. No, because no, it's magic. Okay. Let's continue. You can move the print desk also. Comment out print desk. Oh. No, comment out print desk. Comment out this line. What do you think? Comment out this line. Print plan. Comment out the print as well. Yeah. Yeah, the hash one. Put an hash. Wow. What's the word? Because you got print here. But this is not the URL. You still have to put it there. I send you the code, okay. So it works? Come on, V. Okay, print. You got the print. You got the print. You have to get something. No, I'm not okay. It's Shubhan. Shubhan. Oh, could we just finish this? 8.5 almost. Yeah, you have something more. You have something more. No, but people are still doing it. Yeah. How am I going to do it? I'm going to make the room. I'm going to make the room. Yeah. Turn off the light. It's okay. It's okay. It's okay, it's okay. Oh, okay. I love the light. Is it nice to come over? Help us. I like the light. I'll see what details. It's okay. I'm going to look at this. Here's the resume. Yeah Also, it's another Oh Where are you did you find your lovers gender Oh No, there's no my little status in this list Hey, who started the microstatus Who was it? You cannot volunteer come up and explain please Yeah, you should ask you should ask a name. She's the one who wanted the Michael status. Why don't we have the Michael status? I think So she wanted to find out the matter status fast but this But even though you have the Michael status here, you do not have the You do not have the matter status here So you cannot get it from the list So what you have to do is you have to go to each person's So so now you have to pass for each person you have to pass the profile page So Yeah First you have to get the URL Then you have to pass then you have to use to So suit just parcel the whole page and let's you do suit dot find all tables No, it is just to print out the different so let's say you want to find all the tips in the page Like all the all the DL elements Then you can use that so a suit just helps you find everything Okay, so so can you get the list of you are that is what everyone is Can you get the list of you are this? Oh Yeah No, yeah, so you write a follow-up you go to the billionaire You know, yeah, you can get the names from the billionaire I We should ask them. Yes. Oh, nice. You're new here. That's the problem. Yeah. So, what do you usually expect when I come over? Say, is this the first problem? No, it's the only problem. This is just a number. I'm not sure if you want to know. No. It's actually the chair, right? Then just the S, the space with the chair. The other is quite... The space with the chair, that's the one. The space with the chair, that's the one. Then the exact destination for that one. The one in front of us. The two of them are from this state of trillions. After you get a motion, who did the chair and you understood it as? The center. That's the larger one. Yes. Yes, that one, yes. Okay, guys, I think officially the... ...optional time of the discussion was over. Um... I hope after you understand that programming is actually very easy I mean in my opinion it is one of the easiest professions out there because you sit in an airport and anyone gets picked up I give you a session of three hours you go to this level from nothing then even if you spend a few more hours right you'll be able to do yeah you'll be able to do a lot more and yeah and usually so be lazy so whenever you have to solve a problem but that problem requires you to go but that problem requires you to do some repetitive tasks no loan to it so you should want the world yes yeah well let me see what else yeah so I mean easy easy you should be lazy stand on the shoulders of giants whenever you have a problem and you can't figure it out first Google see if someone else has done it if someone else has done it copy their code copy their code and try to modify their code yeah I mean try not to write your own summation till you till you cannot till you are sure that the one assistant yeah I hope that this increase your curiosity actually I had a lot more stuff to go through like you know detecting faces and images and stuff it is actually quite simple as quite simple as well but yeah I hope this is yeah you are curious to learn more I'll post the link in the comment yeah thank you for coming if you still have patience you can still ask me