In this Python tutorial, you’ll learn how to work with JSON (JavaScript Object Notation), a lightweight and widely-used data format for data exchange.
What you'll learn:
✅ How JSON works and its structure
✅ Converting JSON strings to Python dictionaries with json.loads()
✅ Writing Python objects to JSON with json.dump()
✅ Reading JSON files with json.load()
✅ Real-world API example using ExchangeRate-API to convert currency 💱
We also walk through practical use cases, including modifying JSON files, formatting output, and removing specific fields like area_code.
✅ This is a perfect tutorial for beginners and developers who want to understand how to use JSON for APIs, configuration files, and data pipelines.
data_initial = {
"states": [
{"name": "São Paulo", "abbreviation": "SP", "area_code": 11},
{"name": "Rio de Janeiro", "abbreviation": "RJ", "area_code": 21},
{"name": "Minas Gerais", "abbreviation": "MG", "area_code": 31},
{"name": "Bahia", "abbreviation": "BA", "area_code": 71},
{"name": "Paraná", "abbreviation": "PR", "area_code": 41}
Show More Show Less View Video Transcript
0:00
hello guys welcome back to the channel John here So today we're going to learn how we can work JSON data in Python But
0:05
before that okay let us define what is JSON So JSON stay for JavaScript object notation Okay we wrote this way Okay
0:11
JSON So this GS here the first GS okay it stay for JavaScript and O stay for
0:17
object and N stay for notation Okay so it is a lightweight and widely used data
0:22
format for storing data and exchange information So despite his name being
0:27
like JSON okay and the JavaScript being here okay in the first JSON it is
0:33
independent and supported by many programming language okay including Python also So in this video we will try
0:39
to know better we will explore how we can work with JSON data in Python from the basics itself Okay and we also going
0:46
to have some kind of a practical experience by accessing data from any API Okay any free API So but as I said
0:53
okay we will learn how we can work with JSON data like writing the JSON data how
0:58
we can load the JSON data how we can convert the JSON data into Python object so and many things on okay so but before
1:06
we start okay if you didn't subscribe to this channel please subscribe to the channel and give a like to this video so let's start JSON structures data using
1:13
key value pairs and ordered lists it is similar to the Python dictionaries okay and list also so here is one example of
1:19
JSON data so this is a simple structure of a JSON data Okay as I said okay it
1:25
looks like additional and listes in Python So we have this pair of okay open brackets and here inside we have some
1:31
kind of list Okay so this is the object that we will work on For example here people represent object So this object
1:38
people it has a lot of datas inside Okay or a lot of uh lists of dictionary Okay
1:43
for we have the first information the first data which is this one and it is separ separated by comma which is this
1:49
one Okay and the second data is this one Okay which is also separate Okay the this comma separates the both of the
1:56
data Okay so we will learn how we can work with this thing Okay with this type of extractor data and the first
2:04
operation that we are going to perform here will be converting okay between JSON and Python object So in order to do
2:11
that okay we need to use JSON for that Okay so how we are going to do this
2:16
Let's start So in order for us to convert this uh data okay this JSON data into Python object okay so we can use
2:23
the built-in model which is JSON by from Python okay it allows easy conversion between JSON strings and Python object
2:30
so how we can do that okay to do that we need to do this okay so this is the information that we are going to convert into Python object so for that I'm going
2:37
here in the top okay let me give some space so first we need to import JSON inside of our script okay I'm going to
2:43
do something like this okay import JSON import JSON So this way we import JSON
2:49
into our script So to in order to convert this thing okay first we will do
2:54
something like this I'm going to create any variable I will call it as a JSON
3:00
JSON data JSON data will be equal Okay So this JSON data will be inside of uh
3:08
uh quotes which will be okay One two three this way Okay I'm going to open here and I'm going to copy all of this
3:15
thing inside of that quotes Okay I'm coming here Let me give a little space
3:20
and boom I will do something like this So this way I just put the all this information Okay inside of this variable
3:27
also like this If I'm going if I print this thing I'm going to get something like this Okay let me see Print uh print
3:35
what I'm going to print JSON JSON data which is this one Save And if I run this
3:41
script let me show you As you can see it just print all this extractor Okay so
3:48
this is not yet converted into Python object Okay so for us to convert this extractor okay into Python object we
3:55
need to do something like this Okay come down Uh I'm going to come here give a little space So I'm going to call create
4:02
another variable called Python data Okay Python data So this Python data it will be equal So now we we are going to make
4:08
use of JSON itself JSON dot loads this way here dot loads uh open and close
4:16
what I'm going to load I'm going to load this information that I have here Okay which is JSON data So I'm going to come
4:21
here JSON data Okay JSON data Boom So now this way if I
4:29
print this Python data okay come here Let me print it put here if I save and
4:36
if I print it let me push this up
4:42
now if I print this thing okay let's print now first let me clear here so that we can see the things properly
4:53
let me clear this clear now if I print this thing okay let me run the script boom as you can see now
5:00
is is printing a Python object okay as we can okay people Then here we have a
5:05
peoples as a key itself Okay Then we have a list of dictionaries Okay So this is the first dictionary which start from
5:12
here and stops here Then we have the comma and this is the second dictionary So this is the way that you can convert
5:18
any structured data JSON data okay into Python object So now the next operation
5:24
that we are going to perform will be create read and modify a JSON file Okay So now we are going to work with JSON
5:31
file So for this okay we are going to need something like this okay initial okay so we'll be using this data and
5:37
don't worry about this okay I'll keep it in the description of this video so that you can make use of it okay so this is
5:42
for me to don't type okay because if I type this might take a long time so that's why I'm just using like this okay
5:49
I'll copy this the same information okay in the description of this video so the
5:55
first operation that we are going to do is to create a JSON file by using Python
6:00
okay so in order to create this Okay as always first we need to import JSON here in our script Okay let me call import
6:07
JSON this way as always Okay save So after importing JSON okay we have this
6:12
information here Okay in order for us to create any JSON file by uh using Python
6:19
it will be something like this See first I'm going to open this Okay I'm
6:26
going to open any file Okay I'm going to open the file with Python Okay so it's
6:31
like that If the file that I'm going to open exist it will open Okay if it doesn't exist it will create that file
6:39
then it will open it So how I'm going to do this It's it will be something like this See with okay with open with open
6:47
what So I'm going to give the name Okay So this is okay This information is about the states Okay The states of
6:54
Brazil Okay So for them S Paulo is the one state of Brazil Rio de Janeiro is one state of Brazil Minajer Bay and
7:02
Parano Okay Those are the information of states of Brazil Okay So this is the abbreviation of the state of sal which
7:08
which is SP and this is the area code which is 11 Okay So and the same go with Rio Janeiro Miner Bay and Pana So I'm
7:16
going to create uh I'm going to call this JSON file that I'm create as a states Okay So I'll call it states do
7:23
JSON this way Okay States.json JSON So since I'm opening this okay and since I
7:30
want to create a new uh JSON file okay I'm going to open this in writing mode
7:36
Okay so for writing mode I need to give which is for writing mode Then I'm going to give comma and after that okay I'm
7:44
going to use encoding also Encoding this way Okay so it's very important for you to give encoding Okay because if you
7:49
don't give encode it might get error while open the file So in order for the things to open properly is very useful
7:57
is very necessary for you to use encoding So that's why we are going to use encoding UT uh UT what UTF-
8:05
and 8 Then we are going to consider all this thing as F Okay Then the dot I'm
8:12
going to come the next line So after this okay I'm going to use JSON
8:18
dump Okay So JSON dump is the one that help us to open a JSON a JSON file okay
8:24
in Python So in order for me to do that I'm going to do this Okay JSON Okay JSON
8:31
dot dump this way Okay JSON.dump I'm going to open So the first thing that
8:36
I'm going to give is the information says which is the data Okay so the data is this one Okay the data initial So I'm
8:43
going to come here down Okay I'm going to paste data initial which is this guy Okay comma
8:50
Then I'm going to give the file that I'm going to open or to create which is this state Okay which will be this f F comma
8:57
and then I'm going to use something which is really very important Okay that help us to keep the JSON file well
9:04
formatted Okay a very indented So which is this one I indent okay which is this
9:10
indent I'm going to give two okay so that it will format the file very well Okay like giving two space So after that
9:17
okay there is another param that we are very important for us to give which is this one Okay insure ask So in should
9:23
ask key is for okay for them there are some words okay which has some kind of a special character something like this
9:28
for them if you check is them s okay s p it has something here in the top of a that in Portuguese we call it as a title
9:35
okay so this is kind of a special characters character so in order for us to open or to create or to save this
9:41
information properly okay without any damage it's very important for us to use to give this parameter insure as key
9:47
okay so that when you give that okay it will open the things or it will save the
9:52
properly without any damage of the information Okay So this also goes for special character like for examp if we
9:57
have like a robot if we have some any kind of a special characters okay in alphabet is very important for us to
10:04
give this insure ask then we just need to give like fails something like this
10:09
okay fails so after that okay this way I'm just I'm creating the I'm writing
10:15
into the JSON file okay I'm creating JSON file so now the next thing that I'm need to do is to print so that we can
10:21
see the result okay if it really work it or not So for that I'm going to do something like this Okay Print open What
10:27
I'm going to open Okay Let me do this Boom Uh I'm going to up Okay File File
10:32
Okay File Okay This this is just a name that I'm just going I'm giving Okay So
10:38
that it can we can see the okay file states state.json
10:44
states.json Okay Oh sorry State.json's created Okay Let's say created create
10:52
created Okay So this is for just so that we can get any information that okay the file was created Okay So after that let
10:59
me give one kind of slash n so that it can format well my input Okay So my
11:05
output better Okay Let me clear this Clear Clean Clear Clean Uh-oh It's clear
11:11
not clean I mistake Okay Now I have to waited for process Okay Exactly Is clear not clean
11:17
Clear Okay Let me clear this Now let me run this uh piece of code so that we can see what the result If I run this as you
11:23
can see it print me file state.json created As we can see now we have here one file called states.json
11:31
Okay if I'm coming if I click there and as you can see it just created this file Okay as you can see states okay then we
11:38
have name sao abbreviation of s area code 11 name and so on so on so on Okay
11:44
so it just create our JSON file So it works like that Okay if uh the file
11:50
exist it will like write inside of that file Okay if it doesn't exist it will
11:55
create the file Then it will post it will save the information there So those information we just save as a JSON file
12:02
As you can see even the icon okay is kind completely different Okay it's kind of like open bracket bracket open
12:08
bracket and close bracket That is how JSON file are identified So the next operation that we are going to perform
12:14
will be how we can read and assess data Okay JSON data in Python So for that we
12:21
are going to do something like this See in order for us to read okay we need to do something like this I'm just going to
12:27
comment this uh line of code Okay I'm going to comment this Okay even this one
12:33
Okay let me comment them Yeah they stay together Boom So okay in order for us to
12:40
open to read and assess the data we need to do something like this Okay I'm going to use this almost the same thing Okay
12:46
with open let me do this So what we going to assess we need to assess this this uh data so that we can do some
12:53
manipulation Okay let me assess states okay is states
12:58
statejson state.json JSON and since I'm open it
13:04
for reading okay so it means I'm going to give the read parameter okay which is
13:09
R this way okay R allows us to read the information so after that okay let me
13:16
use also encoding I never forget encoding okay it's very really really important to use encoding encoding what
13:22
I'm going to give as always okay UTF-
13:27
and 8 so if all this thing let's consider as f okay dot so we are reading
13:35
the information okay so for read information I'm going to create a variable called data okay so this data
13:40
will be the the information that I'll be manipulating so data so let's use now
13:45
JSON dot okay to open we need to just use the load function okay which stays
13:50
like this save I did a mistake here okay is JSON JSON
13:58
JSONload I forget give the f okay which is the file JSON.load Lo f save Perfect
14:06
So now we have the data here Okay So we have this data uh which is which contains all this information here Now
14:13
let me close this Okay Close that one So come here Perfect So now uh the first
14:18
operation that we are going to do okay uh let's print the states okay the information So let's assess the data and
14:24
print it So in order that let me print okay print what I'm going to print Okay I'm going to print the states Okay Let
14:31
me see states Okay Status and uh abbreviation Abbreviations Abre
14:40
abbreviation One B is missing with abbreviation Abbreviations state and abbreviations Okay Dot Oh sorry Dot and
14:48
save So and I'm going to some kind of final meaning blah blah No that's not
14:54
important Okay States and abbreviation Okay Come here So
14:59
after that okay I'm going to do something Okay for us to assess the the information which is inside of this data
15:06
I'm going to use the for loop okay for states okay so states now let's use
15:12
state only for states in in what in data which is this information okay for
15:17
states in data and let's use this okay so we just need to assess the states and
15:23
the abbreviation okay so if I come here into this state uh this JSON information so okay I'm going to assess this stage
15:30
which is the object Okay because this object state has all this information Okay let let me assess status come here
15:37
Okay I'm going to give here like this Okay status Okay for state in status I'm
15:44
going to do this dot What I need I need to print open Okay I need to I'm going to use F
15:52
string Okay F Let me use F string Then I'm going to print Okay let me do this
15:57
Okay state I'm going I'm using this state Okay state h what I need to assess I just need to
16:04
assess Okay since we are here on when I get data states okay which means I I
16:10
already got all this information Okay so inside of this information now I need only the name the name of the state Okay
16:17
I'm going to use the name state name Okay
16:23
state name and the abbreviation also Okay kamir give
16:29
I'm going to open bracket parent this way Okay then let me get the state Okay
16:36
state I need the abbreviations also Okay what is the abbreviation H abbreviations
16:43
So this is how you can assess or you can manipulate the JSON data in Python Okay I'm going to use the abbreviation save
16:50
Now if I run this thing okay let's run this Come a little down Boom If I run
16:57
this guy let's run this Save and run Boom As you can see we got the states S
17:04
Paulo What's the abbrevation of S Paul SP If we come here and check as you can see uh S Paulo what's the abbrevation of
17:10
S Paulo SP Okay And we got for all the states Okay S Paulo Janeiro Miner Rise B
17:16
and Pana and so on So this is how we can read and access the data in JSON file
17:23
list by using Python So the next operation which is also very really really really good important uh
17:29
information operation is removing area okay removing data inside of a JSON
17:34
information uh data So in order to do that okay we are going to do something like this see I'm going to come here
17:41
okay let's use again for okay for state in in what in data
17:48
uh data what let's assess only states okay states let's do and dot okay like
17:55
this boom perfect so uh we want to remove the
18:02
the operation that we're going to use here is to remove the area code okay we want to remove this this one okay this
18:08
area code in this information okay so as we know okay is always good when you are
18:13
manipulating data okay never mess up with the original data okay because you might need this so when you're doing uh
18:21
manipulation of data okay always create a copy create a new data that will put
18:26
this uh that will copy from the original source and put in the sample source or
18:31
something like that let's say like that so first we need to check okay Let's check if area code exists Okay If area
18:40
okay if area code come here okay in state if area code in
18:47
state okay let's do this lot dot and come down So what we going to do is okay we are going to delete delete what
18:52
Delete state Okay state area
18:57
code delete state area code Perfect Save Okay So like that if I run this okay let
19:06
me run boom uh it just it's only printing it's printing almost the same thing okay because we didn't print it at
19:13
all So uh this piece of code okay it will remove the area code okay so what
19:20
we can do so the next thing that we are going to do it will be something like this see and let's reuse this guy okay
19:27
this code that we have here okay let's reuse them I'm just going to copy
19:32
come here okay so after this operation which is removing operation okay uh I'm going to paste these guys here come here
19:40
okay delete this and delete this So as I said okay never mess up with the
19:45
original data So in order to do that let's create a new date okay let's call it like a new
19:52
states okay dojson let's open the same way let's use encoding as always and
19:58
here also let's keep like this okay so what we are going to to give it okay so we are not going to
20:03
do with data initial okay which data initial is this one okay so the one that we are going we are working on is this
20:10
one is the data so let's give the data remove this let's give this one
20:16
And here let's keep the way that it is Okay So now let's print the information and let's say okay file states Okay File
20:26
uh new states File new new states Save it Save it
20:35
Save it without Let's use without Okay Save it with
20:41
without Save it without area Without area code
20:50
save for that I need to print it Okay So for me to print it uh it's very easy I just
20:58
I can just reuse this one also Okay And no I can just reuse this one Okay I'm
21:04
going to copy this information that piece of code come down and paste it
21:09
Okay So what I'm going to do h for data in uh no no I need to assess this one Okay
21:17
so for that I need to grab all this too I need to get this food
21:26
come here Okay and okay so because I need to open the new date new
21:32
information Okay so new information will be this one new states JSON come here Okay instead of this let me give okay
21:38
new state JSON and let's open uh like this Okay let's call it data Then let's say for data into blah blah blah is
21:45
something like this Okay so this is okay Now let's come here Okay
21:51
and into this one Okay let's this one let's print with area code Okay let me
21:57
add also one more thing and just let me come here I'm going to copy this one
22:03
Give a little space I'm going to give like this paste And now I'm going just to give that area code Okay So this one
22:10
it will print with area code and another one will print without area code Okay Save Okay Perfect Now this one will
22:18
print without area code Okay Save And if I run this let me come it up If I run
22:23
the code let me see Boom As you can see everything work Okay So this is the first ones Okay With area code Say S
22:30
Paulo SP abbreviation 11 the area code Then we have okay file a new state JSON
22:35
server without edord as you can see states and abbreviation s Paulo SP something like that okay and also
22:43
it created a new file as you can see new states okay if I come in this new state and if we check that new state so let me
22:50
come this guy down if you say new state name s Paulo abbreviation sp there is no area code okay but this old one has area
22:58
code okay so guys this is how you can manipulate JSON data by using Python
23:03
Okay So and the nail operation that we are going to perform it's not operation
23:09
Okay So this is something we which is very good that we are going to do So we are going to try to assess any
23:15
information from any API which exchange rates API and let's work with that thing
23:20
and let's see because that is a very really really good example Okay it's a practical example okay with uh information from cutting techch chains
23:27
API integration Okay so let's do this thing and then we can close the our
23:33
projects Okay so in order to do that let's do something like this Okay I'm going to use this one Let me clear this
23:40
So uh let's uh consume a data from the exchange rate API Okay so in order for
23:47
us to do that okay let's do something like this Uh I'm going to import JSON
23:52
itself first as always Okay Import JSON Import JSON
23:58
Oh Oh JSON Import JSON Oh let me give a little Okay this way is good You guys can see properly
24:05
Import JSON So after import JSON uh what I'm going to do So the next operation the next thing to do will be uh control
24:12
B Let me I think to be like this will be better Import JS Okay The next operation that
24:18
we need to do I'm going to use from U R Okay from URL
24:25
lib from url lib import what I'm going to import uh url lib dot request dot
24:34
request okay do lot request import I'm going to import URL open URL open
24:42
perfect so the first thing that we need to do is oh
24:48
sorry then the first thing that we need to do the first thing that we need to do is to fetch data from the API Okay So in
24:54
order to do that I'm going to create a variable called URL Okay This URL will be equal So the URL that we are going to
25:01
use will be this one Okay Don't worry I'll keep it in the description of the video So we going to use this one http
25:07
https dot dot what and slash something like
25:12
this Then say open Er okay Api
25:20
Okay con okay underscore like this V6
25:28
okay this is one end point that we can get the latest information okay latest
25:33
latest and underscore again USD okay we can get the latest information of USD
25:41
from this URL perfect so save now if I print this guy okay print let's print
25:47
what URL perfect safe and let me clear it clear
25:53
and if this guy come up okay save now let me run as you can see it's just
25:58
printing the URL itself okay so after that the next thing that we need to do is let's get the response okay response
26:06
response so in order for us to get the response let's use the URL open okay let's call URL open okay what we are
26:14
going to open we need to open the URL that we just gave there okay URL save now if we print this response Okay let
26:21
me copy and paste here Boom Save And if we run this guy let's see what's going
26:28
to give us Boom As you can see it gave us HTTP.Client HTB response object We have something like this Okay Perfect So
26:35
this UR URL okay it give us also the information as a JSON file Okay so in
26:41
order for us to open this information properly okay let's use the JSON uh JSON
26:46
itself Okay that we imported So let's do this Okay basically create a variable called data JSON Data JSON So this data
26:53
JSON will be equal JSON dot loads
26:59
open what Let's open the response that we got here Okay response
27:04
dot read this way Okay open and close Then dot decode Okay because we need to
27:11
decode this information so that we can see it properly Okay decode Open and close and do this UTF Okay
27:19
Underscore uh not that's not underscore Okay Hyphen 8 Perfect Okay Save So now
27:26
if we print this data JSON Copy Come here Okay And boom Save Now let's clear
27:32
this so that we can have more space Clear If we do this save And if we run Okay Let's wait since because it's going
27:39
to assess the URL and it might take a little time because my internet is very slow Okay And if you guys also want to
27:45
help the channel please you can donate to help me so that I can improve some stuffs here As you can see it's give us
27:52
this information okay as results result success provider this one documentation
27:58
So this is a JSON uh this is a Python object okay that it give us gave us okay
28:04
is getting from this JSON file something like that okay so the thing that we need to get is the rates okay we need to get
28:10
this one the rates okay rates it's here and this is the information of rate rates for USD for uh Arabian USD for
28:19
Afghanistan for all for AMD for NJ is my
28:24
NJ I don't know which country is this but this A O A is my country which is Angola and BZ something like that a lot
28:31
of count Okay So we need to get the rates Okay So in order for us to get the rates we need to do something like
28:38
something like this Okay So this is actually the next step The next step which be processing the date Okay So so
28:44
in order for us to get the uh to process the date and get all the information that we need we are going to do
28:50
something like this Uh let's call it as USD rits Okay USD
28:57
rates USD rates will be equal data okay data JSON because this one is the one
29:04
was the information okay and open like this okay what we need we need only the
29:11
rates okay because we need to get only this guy this rates perfect save now if
29:16
I print this guy okay come here save and let's run the guy boom if we
29:24
run ah he's always Good to clear It's always good to clear Okay but it always run Let's wait for result Okay Uh
29:30
because I already run I forgot to clear Oh my internet just fail Okay let's wait
29:35
my internet to come back Ah come on How can you fail right now
29:40
Oh no my internet just failed Okay it went down Uh is my data over or what Let me check
29:47
Okay let me clear this one So that's why guys please donate to the channel okay so that I can get internet and work on
29:53
the things because I think my data just finished but uh let's oh okay I think it just went down okay let me try again let
30:01
me run the thing okay run I lost connection yeah my internet just
30:08
failed but no problem let me see uh unfortunately my internet just uh I don't know it's fail I think it's
30:13
finished or something like that uh you guys really need to donate some stuff okay so that I can get internet let me
30:20
let me try in uh okay connected okay um if I run this let me see come on please
30:26
work internet come back okay I think it's still telling me that invalidation
30:32
ID internet problem okay uh my okay I just
30:38
internet is working now okay as you can see now it's giving this okay USD rates one something like this okay without
30:44
that unnecessary information that we don't need okay perfect so now the next
30:50
step that we need to do is to convert okay to do the rate conversion So this we just processed our data we just got
30:57
the thing that we need So now let's process Okay In order for us to convert USD into euro let's do something like
31:03
this Okay Uh if we check here okay what is the exchange of eo What is the
31:10
abbreviation of A B C D E F G A B C D E
31:17
L E I found it Okay Here is this one Okay So now let's convert USD into E
31:24
Okay So in order for us to do that let's do something like this Okay I'm going to comment it Okay like u convert
31:33
USD to euro Perfect This way Okay so in order
31:38
to do that let's let's do some USD value Okay USD value So uh to get the USD
31:46
value is very easy Okay so what's the USD value that we want to convert So we want to convert for them $50 okay into
31:54
euros Okay in order to do that let's create a new variable called euro Okay let's abbreviate just like this Ear uh
32:01
value okay value will be equal USD This now is just
32:08
basically USD value which is this guy Okay into
32:13
uh USD okay into USD rates Okay Uh USD rates
32:20
USD rate which is this information We need to get only the euro Okay Which this guy USD rates come here Let's put
32:28
euro We need only euro Perfect Now if we print this guy
32:34
come here Okay And if we print here come here stay here Perfecto Save And value V
32:43
value Okay Now if we run this let's run Ah I forget to clean it again So as you
32:49
guys can see it's giving us this value Okay this 43.73
32:55
Okay so now let's organize very well this uh message Okay so let's format it So for that let's do something like this
33:01
Print open and close Print what Uh let's say something I'm going to use F string
33:07
F string let's say something something like uh USD
33:13
USD value Okay the value that we have and then
33:18
let's say USD will be equal open and close here Let's give the euro e value
33:27
Okay euro value I'm going to use fing to format Okay let's format with two house
33:33
Okay Uh no dot to f this way Okay perfect Save And come here and let's say
33:42
euro Perfect Save Save Okay let me clear this thing Clear
33:49
And if I run now let's wait for the results Okay it must give us Oh why I
33:55
print this also Okay but no problem since we have this one It's okay
34:00
I hope I don't lose connection again Okay perh give us F string Yeah it gave
34:08
F string because I did a mistake Okay this guy
34:13
uh this fs string yuke don't stay there Okay and I need to come here and close
34:20
this something like this Okay save That's why it gave us this something like that Okay it's mistake by mistake
34:26
Save Now let's uh run it again Okay now I just correct Okay this supposed to be out and this be like this Okay perfect
34:33
Now it give us okay 50 USD into arrow is equal 43.73
34:39
eo okay perfect so guys we will stop here okay so this is how you can work with JSON files in Python okay how you
34:47
can convert how you can get from request and you can write delete a JSON file in
34:52
Python okay so my name is if you like this uh tutorial this okay give a like and please also subscribe to the channel
34:59
give a like and donate if is possible okay so that you guys can help me to improve more my stuff something like
35:05
that As you can see while tutorial going on I lost connection okay because my internet my data finished Then I went
35:10
and asked to my neighbors just to share me a little okay of his internet Okay So but thank you and see you in the next
35:18
video Bye

