Welcome to Python Course Assignment One. As you have completed the milestone one, that means you are familier with the python basic. This assignment helps you to grow your confidennce
- Step-1: You need to clone this repository first. You can clone the repository by following command
git clone https://github.com/aouwalitshikkha/mobile-post-data.git
- Open it in your favorite IDE e.g. PyCharm, VS Code etc.
- Here you will get three files
- Open
mobile.py
. - You will get a varibale named
mobile_data
. You don't need to edit it. - At the end of the page you will get a comment where you can start code
- Make a template using the dictionary data.
- Your Template must have at least two sentences.
- USD must be converted to BDT
- example Output:
Xiaomi Note 5 is made in China. The price is 300 USD which is almost equal to 30975 BDT
- Open
post data.py
. - You will get a list of dictionaries. You don't need to edit it.
- At the end of the page you will get a comment where you can start code
- Add slug field to all the post
- We will test it by calling with random number e.g post_data[4]
- Expected Output:
{
'userId': 'Alex Gates',
'id': 5,
'title': ' nesciunt quas odio',
'body': 'repudiandae veniam quaerat sunt sed.....',
'slug': '-nesciunt-quas-odio'
}
- make the slug limited to 3 words
- Make variation of the templates of mobile data
- Variable name must be meaningfull
- Commit at least 2 times in github