avatar Bite 318. Decode base64 encoded data

In this Bite you are going to decode some Base64 encoded csv data.

This is what the encoded data looks like:

Zmlyc3RfbmFtZSxsYXN0X25hbWUsY3JlZGl0X2NhcmQKS2VlbGJ5LE1hY0NhZmZlcmt5LD
YzOTM3MTk0MzMzMjk5MjQKTGlubmVsbCxDbGVtbWV0dCwzNTU1NTg0OTI0MDkzOTU0CkVs
eXNoYSxNZWlnaGFuLDYzODU3OTU3OTM4OTcxMDYKS2F0YWxpbixFdGhlcnRvbiwzNTg0Mj
MwMDExNjgwNzAwCkZpbmEsUGFzZWssNTEwMDEzNjYzMTY2NDY4NwpBcmRlbGxhLEJyYXpp
ZXIsMjAxNzEyNjEzNjUzMzc0CkRvcnRoZWEsS2FycGluc2tpLDMwNTAyNjYxMjUxMTcyCl
Jhbm5hLER1ZmYsMzU3NjM5MzA1NjQ5MzMxMgpDaW5uYW1vbixLYWFzbWFuLDU0NDIwMjgx
NTA4MDg1NzAKSmFjbGluLFRvbmdlLDM1NDk4NTIxMDQ3MjQ1MjcK

This data would look like this decoded:

first_name,last_name,credit_card
Keelby,MacCafferky,6393719433329924
Linnell,Clemmett,3555584924093954
Elysha,Meighan,6385795793897106
Katalin,Etherton,3584230011680700
Fina,Pasek,5100136631664687
Ardella,Brazier,201712613653374
Dorthea,Karpinski,30502661251172
Ranna,Duff,3576393056493312
Cinnamon,Kaasman,5442028150808570
Jaclin,Tonge,3549852104724527

Use the base64 module to decode this data and extract the last column of (fake) credit card numbers returning it as a list (see also the type hints and tests).

We generated the data for this exercise using Mockaroo service, an excellent service to quickly get realistic fake data.

Login and get coding
go back Beginner level
Bitecoin 2X

132 out of 132 users completed this Bite.
Will you be the 133rd person to crack this Bite?
Resolution time: ~29 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.0 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help