object deconstruction python

Solutions on MaxInterview for object deconstruction python by the best coders in the world

showing results for - "object deconstruction python"
Samir
04 May 2019
1 currentUser = {
2  "id": 24,
3  "name": "John Doe",
4  "website": "http://mywebsite.com",
5  "description": "I am an actor",
6  "email": "example@example.com",
7  "gender": "M",
8  "phone_number": "+12345678",
9  "username": "johndoe",
10  "birth_date": "1991-02-23",
11  "followers": 46263,
12  "following": 345,
13  "like": 204,
14  "comments": 9
15}
16
17id, _, _, _, _, _, _, username, *other = currentUser.values()
18
19print('distructuring:', { 'id': id, 'username': username })
20
similar questions
queries leading to this page
object deconstruction python