# python Date = [ { "createdAt": "2022-05-23T18:09:37", "balance": 1000000 }, { "createdAt": "2022-05-23T14:18:39", "balance": 1000000 }, { "createdAt": "2022-05-23T11:43:55", "balance": 90 }, { "createdAt": "2022-05-18T12:18:33", "balance": 2000000 }, { "createdAt": "2022-05-18T12:17:58", "balance": 10000000 }, { "createdAt": "2022-05-10T12:08:10", "balance": 79086 }, { "createdAt": "2022-05-10T12:07:14", "balance": 1111 }, { "createdAt": "2022-05-02T11:28:03", "balance": 13200 }, { "createdAt": "2022-04-21T11:47:08", "balance": 3000 }, { "createdAt": "2022-04-21T11:46:16", "balance": 6800 }, { "createdAt": "2022-04-21T11:33:26", "balance": 6000 }, { "createdAt": "2022-04-21T11:22:37", "balance": 5000 }, { "createdAt": "2022-04-21T11:21:48", "balance": 8000 }, { "createdAt": "2022-04-21T11:18:39", "balance": 7000 } ] # desire output [ { "createdAt": "2022-05-23", "balance": 2000090 }, { "createdAt": "2022-05-18", "balance": 12000000 }, { "createdAt": "2022-05-10", "balance": 80197 }, { "createdAt": "2022-05-02", "balance": 13200 } ] # How do I sum balance of the Date per days like above desire output? but the above code has still left days..... # It automatically has to distinguish the "createdAt" like chaning to "createdAt": "2022-05-23" from "createdAt": "2022-05-23T18:09:37"

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
# python

Date = [
{
"createdAt": "2022-05-23T18:09:37",
"balance": 1000000
},
{
"createdAt": "2022-05-23T14:18:39",
"balance": 1000000
},
{
"createdAt": "2022-05-23T11:43:55",
"balance": 90
},
{
"createdAt": "2022-05-18T12:18:33",
"balance": 2000000
},
{
"createdAt": "2022-05-18T12:17:58",
"balance": 10000000
},
{
"createdAt": "2022-05-10T12:08:10",
"balance": 79086
},
{
"createdAt": "2022-05-10T12:07:14",
"balance": 1111
},
{
"createdAt": "2022-05-02T11:28:03",
"balance": 13200
},
{
"createdAt": "2022-04-21T11:47:08",
"balance": 3000
},
{
"createdAt": "2022-04-21T11:46:16",
"balance": 6800
},
{
"createdAt": "2022-04-21T11:33:26",
"balance": 6000
},
{
"createdAt": "2022-04-21T11:22:37",
"balance": 5000
},
{
"createdAt": "2022-04-21T11:21:48",
"balance": 8000
},
{
"createdAt": "2022-04-21T11:18:39",
"balance": 7000
}
]

# desire output
[
{
"createdAt": "2022-05-23",
"balance": 2000090
},
{
"createdAt": "2022-05-18",
"balance": 12000000
},
{
"createdAt": "2022-05-10",
"balance": 80197
},
{
"createdAt": "2022-05-02",
"balance": 13200
}
]

# How do I sum balance of the Date per days like above desire output? but the above code has still left days.....
# It automatically has to distinguish the "createdAt" like chaning to "createdAt": "2022-05-23" from "createdAt": "2022-05-23T18:09:37"
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY