Python programming for beginners- How to use Datatypes List, Sets, Dictionary, Tuple, String, Number | Keeshtu Technology
Subscribe Here -https://www.youtube.com/@KeeshtuTechn...
#pythonenglish
#pythonprogramming #pythontutorial #pythonforbeginners #youtubechannel #pythonlistdatatype #pythonsetdatatype #pythontupledatatype #pythondictionarydatatype #pythondictionary #pythontuple #pythonset #pythonlist #pythonstring #pythontutorialfree #pythonyoutube #pythonenglish
------------------------transcript----------------------------
hello welcome to technology platform so yesterday the chapter one we have seen like how to install Python and how to execute just basic steps we have seen it and today we are going to see how to like what are the data types are present and how we are going to execute everything we can save now now let's see I will open that idle cell
so yesterday I just show you like how to execute that file name in command prompt now here if you want to open for example uh I just want to run this file so in this file you can see it I just printing the hello world things so now this is the one here I want to execute this in idle command then see this how I am going to execute and then we can discuss further so this is the step execute open and then path name you need to mention it here and then read and then close so this is the syntax here now I just want to execute this file
I'm just copying this and pasting here but if you run it like this it will give you an error message because this class is like Escape character so it won't execute let's see yeah
now for this how you have to execute this like let me show you
[Music] just copying this pasting here and then I'm just copying the whole thing again now just put a double slash that's it
once you have done it and then you can press enter and it will show you the hello world so this is what how you are going to call the file in the idle cell so as you know I already told you that but however I will show you here in command prompt if you want to call this file you have to call like this python and then the file name
but it won't run okay it is also fine so now see it is also running if you give just without a single slash also it should work
[Music] let's see yeah so both are working fine so in ideal you have to use it exec open and then here you just simply call python so like this you can run it I hope you understand now we can go for the data types first we can see the string data type how it should execute let's see I can say like um
hello world now I'm just running it here print
I'm just calling the variable print test here sorry if you're running if you are calling the variable you you have to use without single quotes now see hello world now I just need only H or only I need hello like that I just want to print it here then you have to use it print Str and then this bracket you can say like zero to you can just type in 0 right now you will get sorry you can just close h now I need uh two characters from this then you can do it like this
you just add colon and then one out five anything hello you will get hello so like this you can use it as a string data type this one and then uh we have another one is that set data types so set set is a collection like this is what I'm telling sector set is a collection so how we are going to use it I will tell you now so before seeing that um I'm just typing some this one test here I'm just using this collection of values like I'll say like one or else I will say like a B again I'm typing a and then B and then C now you can see this this is having a duplicate a b c something like that now I am going to print this
print this one you can see only unique values so this is what you can see this kind of bracket we are using it so these are all we are saying that it's a collection of values once you are printing that one and then it will give you the unique value and one more thing now just set we are going to see it set now or is one more thing also I will show you so here you are always like using Str equal to a or one two this is what you are going to trigger it and then you are printing so this is what the normal process here now instead of that I'll say like I'm going to store this calculation something like that for example um a equal to I'm going to like this print
10 into 10 it should print 100 right and I'm storing this in a a value I will see this you have to use it exec yay
and then type you will get the 100 so you can do it two ways a equal to 10 into 10 and then print a