This repository contains solutions for the Non Graded Challenge in FTDS Phase 0 - Week 1. The assignment evaluates fundamental concepts of Python syntax, variables, and data types.
Given a list of customer IDs representing transactions over a day, find how many unique customer IDs are present.
customer_id = ['B818', 'A461', 'A092', 'A082', 'B341', 'A005',
'A092', 'A461', 'B219', 'B904', 'A901', 'A083',
'B904', 'A092', 'B341', 'B821', 'B341', 'B821',
'B904', 'B818', 'A901', 'A083', 'B818', 'A082',
'B219', 'B219', 'A083', 'A901', 'A082', 'B341',
'B341', 'A083', 'A082', 'B219', 'B439', 'A461',
'A005', 'A901', 'B341', 'A082', 'A083', 'A461',
'A083', 'A901', 'A461', 'A083', 'A082', 'A083',
'B341', 'A901', 'A082', 'A461', 'B219', 'A083',
'B818', 'B821', 'A092', 'B341', 'A461', 'A092',
'A083', 'B821', 'A092']
Number of unique customer IDs.
Given a list of integers, use indexing to extract specific elements or sublists.
data = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
16
[36, 49, 64, 81]
[100, 81, 64, 49, 36, 25, 16, 9, 4, 1]
Perform operations on a dictionary of provinces.
provinsi = {
'Nanggroe Aceh Darussalam': 'Aceh',
'Sumatera Selatan': 'Palembang',
'Kalimantan Barat': 'Pontianak',
'Jawa Timur': 'Madiun',
'Sulawesi Selatan': 'Makassar',
'Maluku': 'Ambon'
}
'Jawa Timur'
from 'Madiun'
to 'Surabaya'
.h8dsft_ngc_python_syntax_and_variable.ipynb
.