5 MUST KNOW Python Inbuilt Functions(Beginner Friendly)

ChethanAIChronicles · Beginner ·📐 ML Fundamentals ·5mo ago

Key Takeaways

The video covers 5 essential Python inbuilt functions, including print, input, strip, capitalize, and title, with examples and explanations to help beginners learn Python programming fundamentals.

Full Transcript

Hello guys, uh welcome back to my channel. Uh so today we are going to um you know learn about basics of pythons um like uh like some of the inbuilt functions like what Python uh programming has and also some of the you know um basically the uh the coding languages which we'll use uh day in and day out if you are using Python programming right so those kind of things we will try to explore and uh we We'll try to see how it how it really works and what kind of uh you know uh things we can um explore right um so basically people will start only writing the program but uh what is behind this right like I mean so why we are writing those kind of things so we'll write uh try to dig deeper and we'll see like how it works and we'll start doing uh some of the you know coding coding also coding um like to write the code also Okay. So I'll start with uh the basic thing which is like uh in a website like how uh like where where the inbuilt functions of Python is stored right. So if you see my screen uh so if so there are like several inbuilt functions in Python. So if you see here right so there are like several uh like objects print property id input you know uh there are separate functions. Okay. So if you just click inside this right so you will get to know like what exactly so for example I just clicked on print now so it is just given that uh so what kind of attributes arguments you can pass in the print uh print in function so it's like star objects you can pass separator and by default it is like back slash n and equal to n plus equal to false so those kind of things uh is there in like a print uh in function so like that we have a different inbuilt functions. So we have like uh uh input or we have int you know uh we have different inbuilt functions in Python. So we'll try to dig deeper like we will at least try to cover some of the things. Um and also another thing so so these are the built-in inbuilt functions in Python. Uh some of the functions are like you know um those are like with respect to string those are with respect to int and all these things. So you just need to understand that. So these are the inbuilt functions if you know in Python. So then like I mean you guys will understand like how how we can you know use these functions. So first to use this function you need to understand what is there inside that right? So that's where I like am just showing you guys like where you can find this built-in functions and also I will paste this uh link in the description also. So you guys can just uh take from there uh if you guys don't know where to you know search this in built-in functions in Python. So this is uh this is just a start we need to do right as a built-in functions we need to understand like what in built-in functions each and every built-in functions has what arguments for example if you if I go to abs right so you need to understand like what is there like number you know it will take number as a you know argument you know so it will take a different kind of stuffs it is have okay so that is uh where you need to this is this just like a you know book for you or you can see the inbuilt functions of Python. Okay. So this is one part. Okay. Now what I will do is I will try to dig deeper into some of the inbuilt functions in this list. Okay. So that you guys we will try to explore those things. Okay. So let me go to my VS code editor. Uh yeah. So what I will do is I will just start with print statement because print is just a uh you know uh everybody will use print statement. So why we will use print statement is because uh so for every program right uh we need to see like what is happening inside the program for that so what you need to use is like for example to display any uh value or to display any uh things right so you you need to use print statements not only in Python in any programming language there will be different syntax of print for example in Java it is system print and in Python it is like print you know um in I think C programming it was system uh not not system sorry uh so C++ it was C out uh you know uh in C it was print f if I'm not mistaken right so like that we have a different uh print statement in different programming language I I can say that Python is like a simpler print statement uh like what I ever did some programming stuffs Python is lightweight and it is simple And it is not having lot of you know uh for example if you see Java right it is like size system.out.tprint print l and we need to write so many letters in that uh so for example in python it is simpler just a print uh keyword if you use so then it is like u see I'm not telling java is bad and I'm just telling the simplicity of python programming language okay even I did more java only uh so earlier so now I am just learning these things uh so I wanted to share the knowledge with you guys uh so that's where I am just telling that you uh Python is lightweight architecture and it has a lightweight programming and it is you know helping everyone. Okay. So this is where I wanted to make you guys understand and uh so if you see this uh screen right so print statement has uh took multiple arguments or parameters it has okay so let me explain each and every uh arguments here. So first is like star object. Star objects means for example. So you may write right? You may write for example you may write here. Okay let me do one thing. Let me create one uh create one Python file itself so that it will be easier for you guys to understand. So what I will do I will just write print statement here. Okay. So you may write here multiple lot of letters. I mean you can write a lot of letters. So that's is like a star star values. So this inside the double quotes what you are writing right those intended to be saying that star objects okay so which has multiple values you can write x number of words or y number of words you can write infinite words also for example right so infinite words is not possible I'm just telling you like how what is the this one and all so you can write multiple stuffs here okay so those are the things which is uh which is very important okay so next what I will do is like for this is the just this is star obvious Next is a separator operator. Separator means for example if you have multiple uh arguments inside the uh Python code right for example you can say that you have multiple arguments uh you comma uh something like that you know something you have for example so how you will separate those kind of things. So how do you how do you uh separate kind of things that you will have uh I will explain you guys each and every things in Python code. I will explain you guys but I'm just saying the necessity of it. Okay. End means uh by default uh if you see right by default print has pin print in function has end equal to end back slashn back slash main means new line. Okay. So uh so by internally right uh print is assigned to end equal to back section but you can change also I will explain you guys how can you can change okay for example now I have written for example how what uh I will just write hello I'm just writing this okay so this is just a thing okay now I will just write print world. Okay, I just writing these things. So what I will do is I will just try to run this code and see how it works. Okay, so what I will do I will write python demo.p. So it is as you see uh hello is printing and world is printing in the new line. So if you see my screen right so it is printing in the new line. Okay. Now what I will do? Now what I will do is uh I will just keep I will just override end. Okay. I'll just see whether I uh I'll just see whether it will work or not. So because so by inbuilt function is the end I can give single quotes or double quotes. Uh let me give single quotes. So by default what guys uh so by default end value is uh subjected to slash. Okay. Now what I'm doing is I'm overriding this thing because see when you write any Python code, right? So usually we will see what we will just see print of any variable name or print of any text. Okay? So you you are not you will not able to see this end separator and all in your you know usual Python code. I'm not telling like you can't use this in I mean you can use these things. That's why I'm just showing you guys how to use these things because uh so this is very important u separator you know sometimes you want to write some code uh you know uh I will show you guys like how to do that also I will explain you guys but I'm just telling that by print statement even in print statement also there will be lot of parameters or arguments guys understand okay but usual Python uh world may only we So to write just a print hello world okay but in print also you have multiple arguments or multiple parameters. So usually we will write like this right this is like we know how to write and all but why I'm going dig deeper into this is because you guys need to understand if this function is there if if this is arguments are there so you would have additional advantage over others python python coders who are just writing hello world right so that is where I am just trying to understand uh make you understand this stuff okay so now what can be the what is the output guys okay so basically it should print hello world in the same line with no uh this one also okay now what I will do python demo py so if you see here so hello world uh why this is printing here it's two times oh maybe I would have not ah yeah I would have not uh you know uh saved that file okay so what see guys if you see here the output of this will be hello no space no thing because I have added here this one if you add space also see if you add space here for example right again you will run so it will print hello world properly okay suppose I'm not adding anything for example okay I'm just saving this see again it will not tell uh it will not give the space okay so make this you guys need to understand because these are the stuffs which will be very important to uh for anybody right so this is very important Okay. So now what I will do I will explain you guys the uh another important function called input. Okay. Input also I will try to make you understand because uh so when you want to you know improve this right for example I will just write uh hello okay hello world or hello. Hello hello hello only hello is enough. Okay. Okay. So what if if you want to you know greet the user based on their user for example right when you want to login for example I want to login with my user ID you want to tell my name or my things right so you want to have uh something some input from somebody uh so that you know you will get their name for example so there in bit function input is used okay so for example um now input So you need to ask something for the users. So they that's where you input users. Okay. So what I will do is what is your name? Okay. So this will be so anyways I will remove this print statement. It's uh we already understood the syntax. So what I will do is I will just explain uh what is your okay. So what is your name? So what it will do? It will ask for the user input. Okay. So next what I can do is for example I will just try to assign this uh as of now let it be uh we will see uh but as of now I am not printing anything uh as of now it should just ask the user input guys user input it should ask uh so as of now not doing anything I just so it's asking the name I'll just try python chan so as of now it is not printing anything because I have not added the print statement as of okay let Let me explain detail in this. So what I will do is I will just now assign this variable name equal to for example right. So now this variable has Jan value. Okay. So for example if I just print name here okay name here. So what it will have? So my name will be transferred from this variable to print statement. So my variable will be having chan chithan name. So chan. Okay. So what is your name? It will tell chithan for me. Okay. Sorry this one ch. Okay. So it is printing my name here. Okay. So this is where input also come into picture because when you want to ask the user input, right? For example in C programming if you heard scanf. scanf is the word which we'll use in C C programming. So here what we'll use is whatever the input you want to ask for the user. So there it is very important to understand the things very importantly. Okay. So now what if what if you want to tell hello world and afterwards print the user. So now hello world. Now I need to give the uh username in a proper way. Okay. So there are multiple methods here. Uh so let me try to understand this thing. So now what I can do is I can concatenate this with my name. Okay. Uh sorry guys. Uh comma le. Okay. So what it will happen is that uh sorry here. So what it will happen is that demo.py jet and it is printing hello world Jan like that. So I can concatenate with my name. For example, I will just give some other name to understand this. Gracie. So it is printing hello Gracie. Hello world Gracie. So this is a normal way to do it. So what I'm doing I'm concatenating with the uh with my listings whatever the things are there uh whatever the name is there I'm just concatenating so what if if you want to do is in a pythonic coding language right so pythonic coding language has one string called f string it is called formatted string okay so f string means what guys f means formatted string so what I will do is I will try to make the parameter in such a way that uh so I will try to uh put it as like a parameter. So if you see this coding thing right so this is f means formatted string. So if I write like this coding means this is called pythonic coding kind of thing. Okay. So what I will do I will just write the same things. Uh so what I will do I will just type the name here again. Jan again it is giving hello world. Okay. So this is this is one syntax as I showed previous thing also you can uh do it. It's not a problem but I am just trying to do multiple options here for you guys. So that is also possible and this is also possible. So this is called f string after uh formatted. So afterwards whatever you write and you need to put uh your arguments your whatever the arguments in the curly braces flower brackets flower brackets if you put that will display the you know name of the variable. Okay. So that is where you need to make this kind of adjustments. Okay. So as of now you guys understood what uh you guys understood input inbuilt function you guys understood the print inbuilt function okay and name is a variable here uh which you're assigning and also guys uh again uh as I said Python is a simpler program you don't need to use where and all these things if you just display name or something else so it will it will name equal to or something so it will u you know do the it will think that as a variable so basically it is going from from the right to left. So this uh input of this thing will be assigned to name. Okay. No name as a string variable. So that is very is very important. Okay. So now what if now what if for example now I will type uh I will try to explain another uh some two three inbuilt functions also. Uh now what I will do in uh inbuilt functions right. uh now I'll try to cover some of the inbuilt functions uh which is having string inbuilt function. string inbuilt functions means for example if you want to you know uh cut down something for example remove the uh spaces or something and something we can just see that thing before that what I will do is I will try to explain the separator operator also okay so uh so as I said right here separator operator is also there here uh se equal to this one is there right so I will try to explain that also okay think like uh these two are the uh print statement right? So what if uh my separator v variable separator equal to okay so just I will give simply some uh or some something like this separator equal to this. So now I if I run this program, if I type Janu Hello. Hello. Let's name one second. Oh, sorry. I need to explain that. Oh, sorry. Destiny. Huh. So if you see this right uh sorry there was slight confusion here. So now uh name is one variable and hello is one of the one one input means I mean text whatever written. Okay. So suppose for example you need to write it is in like a separator operator. So if you just see this variable right hello name and separator equal to okay so that will separate your uh hello jan as hello j. Okay. This is why separator operator will be used. So because print inbuilt function separator is there in is also there which I have showcased to you guys how how you guys can use this things. Now, now I will try to what I will do I will try to uh see whether uh so how it will print right for example what see if I take this input right uh name okay so what if what if what if so I'm just writing what if uh what if user has given user has given spaces more spaces more and he has written chan and again he has written spaces see if you see this uh let me remove separate operator also as a flow. So next I am trying to explain some of the string inbuilt functions. Okay. So what if the user has given some of the things like a very in a random format, right? For example, Jan in the middle and again in the spaces. So it not it will not look good for the user. Okay. So it is like very uh space is also there and other things are there here and it's not looking good for the user. So for that so we have a different um you know uh command called strip in Python right in Python string input fun inbuilt function. So we have so strip is one of the function uh inbuilt function in Python. Okay. So what I can do is I can assign again name equal to name name dot strip only and afterwards I will print I will print uh this name in the next line. Okay. So now what I will do I will just try to run this code. Uh let us see like whether it will take spaces or not. I will just type user might have some different ideas to enter some. So if you write different uh things also it is coming in the proper format. So that is where the strip is also helping you guys to understand these things. Uh so very important uh thing for everybody that strip is there to remove the spaces spaces guys. Okay. So and another function is there uh so what is what is that use of this function is that strip function is that so it will remove the spaces blank spaces from your input that is a really important uh function inbuilt function in Python. Okay. Now another inbuilt function is there. So let me try to uh again execute. We'll see. So now what what if if I have surname uh for example I'll just type okay so if you see this right uh so I typed my surname on J and J name sorry for for example right so now what happens is that so see uh for user right uh for for any username or any like name or something name or surname. So if you observe the uh capital letter should be there for the you know first letter first letter should be always capital by default. Uh but if you see right my input what I'm I am giving currently. So it is taking the same input and it is passing hello J then J there C in small letter and J is also small letter first name and name is in small letter. So for that also we have another inbuilt function. So what is the inbuilt function is that name equal to name dot see capitalize means uh this is capitalize also we'll do but capitalize I will show you guys capitalize also we will do we'll see capitalize I will explain and also another bit that also I will explain okay now what I will do I'll just print this same thing uh so j okay so if you see here right uh capitalize what it is doing guys is that it is just um capitalizing the C letter in the my first name and it is not doing in the last name. Okay. So that is uh that is not I require. I want my C and J all should be in the capsulator. Okay. So for that another A inbuilt function is there called title. Title. Okay. So if I just pass this thing attribute to the uh as a title. So what it will do is I will just type jan jdev. So if you see the output is hello jan j. So it is trying to build the inbuilt function here. Okay. So this is where I wanted you guys to understand the each and every inbuilt function and try to see like where the how the inbuilt function works. Okay. So so hope you guys understood. Uh so this was just a basic thing what I'm trying to explain that like variables as like how variables work how you are assigning and I have just explained some some three to four inbuilt functions input print uh strip title you know u capitalize you know we these are the string input functions so this if you are understanding this kind of inbuilt functions uh that's really important to you to upskill your knowledge in every other means and you know uh so you need to get deeper into this like why we are using strip why we are using title you know why we are using input at what time we need to use print so then necessity basic things the basic purpose is the main thing here okay and also uh if you want any inbuilt functions to go deeper into this please PM me DM me uh or comment in the in the uh uh video so that I can dig deeper into that and see because explaining all the inbuilt functions again it will take a lot of time. Uh so if you want any inbuilt functions um to be explained uh dig deeper like as I explained in print uh so you guys can just uh you know DM me or you guys can put it in the comments so that uh you know I will try to explain you guys u in my starting of the next video. I will try to take some 2 three minutes to explain those things uh and uh try to understand those things. Okay. Uh so those are the important things and uh again uh so I will uh give you guys the link of inbuilt functions link uh in the description as well so that you guys can look for those things and if you guys have any doubts you guys can contact me at any time. Okay. Uh so if you like this uh video please uh you know like comment and subscribe to the channel so that you know more upcoming videos will be there and more deep down we will do uh in in different uh spaces and we will try to explore multiple things uh you know as together right uh so we will try to uh check like whatever we can do and we will uh try to do some realtime projects also in Python uh like for example how to build uh cafe management or for example some other things we can uh see like how we can explore or how we can realtime projects like planners um so we will go deeper um so as of now I just covered the some of the simple things so we will go deeper into this and also we will do some real time projects uh so that you guys will understand Python and afterwards we will go to aentki part uh because jai aentki I I think um some two to three classes I will just do in Python and afterwards because my focus is to teach a AI guys for you but uh so some of the members have requesting the basics and other things right so that's why I'm I'm part started with this series but yeah I mean in my upcoming videos I'll start with uh you know uh after two to three videos I we will start with you know uh live examples of genai you know live uh tools in jai space and offices Okay. So yeah, I mean thanks for watching guys and uh I will see you in the next video and we will see conditional sloping and everything in Python in my next video. Uh yeah, thanks for watching and have a nice day. Bye.

Original Description

Built in Functions Python Link-https://docs.python.org/3/library/functions.html 5 MUST-KNOW Python Inbuilt Functions — Explained Simply In this video, I explain 5 must-know Python inbuilt functions that every Python programmer should learn early. These functions will help you write cleaner, shorter and faster code. Whether you’re preparing for coding interviews, data science, automation, or projects, these built-ins will massively boost your problem-solving speed. 👉 What you’ll learn in this video: ✔ how each inbuilt function works ✔ real-world examples ✔ when to use them ✔ common mistakes beginners make By the end, you’ll be able to write Python code that is: 🚀 faster 🧠 smarter ✨ more professional 👍 Like this video if you learned something new 🔔 Subscribe for more Python videos 💬 Comment which function was your favorite! #python #pythonprogramming #pythontutorial #codingforbeginners #programmingtips #ChethanAIChronicles
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

This video teaches 5 must-know Python inbuilt functions, including print, input, strip, capitalize, and title, with examples and explanations to help beginners learn Python programming fundamentals. The functions are explained in a simple and easy-to-understand manner, making it perfect for beginners. The video also provides live examples and code snippets to illustrate the usage of these functions.

Key Takeaways
  1. Use the print function to display values or messages in a program
  2. Use the input function to get user input in a program
  3. Override the end separator in the print function to print on the same line without a space
  4. Use the strip function to remove leading and trailing spaces from a string
  5. Use the capitalize function to capitalize the first letter of each word
  6. Use the title function to capitalize the first letter of each word and make the rest lowercase
💡 Python inbuilt functions can simplify code and improve readability, making it essential for beginners to learn and use them effectively.

Related AI Lessons

Up next
Is Python Dead in 2026?| Truth About Python in AI Era | 90 Days Roadmap @FameWorldEducationalHub
FAME WORLD EDUCATIONAL HUB
Watch →