Encoding and decoding on Jason Kidd over what they were going to do.
How you can use Jason that's files while using Python.
So the python basically enables Python objects to be represented in a string of characters in the style
of the jigsaw.
So in order for that, actually, you know, you can see the time in the Python idiom, but actually
I'm going to pull a terminal.
So let me create the terminal here and let me increase.
The size of the terminals, we can see better and what it will do here, I will do I will go in python
mode.
So let's dive Python and you can see that now you can type Python and simply type in for.
Jason, the Jason is still important and now let's create.
A list of books throughout the books equals to the book while.
Guillermo.
Lamely figures out spending, so Bourquin, then Bulc to book three and that's it.
So let's create this list, as you can see, September and then if you chase some dot dump's.
Not in the Brit section, so dump's.
And in the break, it's write books.
OK, yes, and this is here.
So it will be thumbs.
And now we're creating the adjacent object, as you can see, of book one, two, two and book three.
So what the adjacent thumbs is actually doing, it allows you to transform director type object as a
first parameter into the JSON format.
So obviously the adjacent string that's created is very similar to the own representation of Python
list, but it is a string.
So how we know that is actually a string.
If a right string underscore books equals Jason dot dumps.
And now here in the bracket I write again, bow one common.
Book to call mom and boo.
Three.
OK, so once they do that, the three books is created and how do we know this?
So I can simply simplify type.
And then during underscore pause, OK, so if you watch the tape of that file, it is actually a string.
So here's how we can confirm that will create the from the list in Python.
We actually transfer it to the adjacent file, which obviously is a string.
Now, you know how to transfer from Python to Jason, but how to transfer from Jason to Python.
Obviously, some of the files are to receive from the Web are going to be in G some format.
But if you want to translate the data into Python infused into Python, obviously you need to write
some comment in order to do this transfer from Jassam to Python.
And let me tell you how this section is done.
So if I write a string.
Underscore.
Actually, let's try to just Beukes equals again, Labourite book one.
Cuomo woke to.
And book three.
OK, and let me just be an actual string, OK?
And then I write list.
List will be equal to Jason.
Talk to Wolds.
Cuomo books.
OK.
OK, I can see them here, I have an error in the books because I didn't put.
Colin.
Here, so when they fix that and when they run the command, OK, we're going to get them there.
Let's see what this witness, because we had a problem with the same columns, and I will just leave
a single parenthesis out there and inside I will double what I think this would fix the problem.
So just change those and you see how everything will run actually very smoothly.
So limited changes.
So this is the right way that you should write the books.
OK, ok, great.
And then just write.
And this equals just some dos and don'ts folks.
OK.
You can see that now this sentence.
So the laws function actually you can transfer a file from Jassam form to an actual title for a month.
And as you can see, when the created is substring because it is under parenthesis.
Right.
So what we did here later will create the list would suffice to list, and you're right, the Jassam
loads and then the Jassam file that you want to transfer into Python file.
So now we have a right to list.
You see that one book, too.
And this had to be actually tree limb changer just to be consistent.
So.
Getting.
This and you can see that BOOP section up by the list here.
In that case, because he's just not surrounded by apprentice's from both sides.
So this whole transfer from Jason to an actual Biton parameter, you can also create this in an actual
python file.
OK, so for that reason, our first exit from the python mode here and I will go to, though, our resources
folder where we create all our files.
So let me first go to a source folder from the terminal and then we will go back to our idea and look
that the files here are not sorted.
I'm going to provide you the actual Python files and they're going to be quite sorted for every section
that we have here.
We will have different folder with all the files that you need in order to have the source code for
discourse.
So don't worry about that.
But let me now go to the resource folder.
So I see.
So actually, let's created here in our resources folder, our new directory, and the new director
will be called Section three.
OK, and here I wasn't the new Python files that were used for discourse, so let me close our previous
files and now under Section three, I will create the new.
On file.
And the name of the file will be called Books.
OK, so let's now right here for Jason.
OK, and let's write with.
Open books, dogs chase some.
OK.
This is the name and that's right.
Our team.
So let's actually remove the words here.
OK, our team US file and then balls equals Jason.
Don't load this file.
OK?
And then this Friday.
For instance.
Books.
OK.
And finally, all right, Prince.
They.
Books.
OK, so that's our file, let's say that now and obviously for this to work, you need to have a Jassam
file.
That makes sense.
So Jason, finally will from the download from the Internet or this will be translated to from Internet
to adjacent file.
So let me pull up the example file that we are going to use.
So I do it just from the Internet.
So let's say these are different books with title.
And as you can see, those books that have title out, your publisher and so on are the ones who work
with.
So I will provide this file obviously in the source code to me just to download it and add it to your
sections folder, as I did already.
So it's in the same folder as a books, not pure white file.
And now if I go into terminal.
And I assess, first of all, the Section three, let's now run, so I write Python.
And then walks those few white and those you can see here, we have the following output with all the
books that we assess and they are actually made into a list.
So you can see that they may actually cover it.
So you can see that here is the first element of the list.
OK, then we have the next element on the list and so on.
And you can also see that the class here is actually a list.
So we successfully transferred the adjacent file into a pattern of representation.
So this was everything I want for you guys today, a little introduction to how a transfer from Jason
to Python files and the other way around.
That said, thank thanks very much for watching.
And I will see you in the next video.