Python Dictionaries and Lists of Records | Python for Absolute Beginners 07
Beginner-level Programming video in Tamil by Programming Line, 5 minutes long, published 6 Oct 2026.
Give each expense named fields with a Python dictionary. This lesson reads values by key, formats a clear message, updates one amount, and stores multiple expense records in a list. Then use a for loop to display every record. You will learn: - How dictionary keys connect to values - How key lookup differs from a list index - How to use field values inside an f-string - How assigning to one key updates its value - How an unchanged loop processes another record The example uses fictional categories and whole-rupee amounts. The first two output lines demonstrate an amount changing from 120 to 130; later lines come from the record loop. CHAPTERS 00:00 Welcome to named fields 00:23 Create a dictionary record 00:49 Read fields and predict 01:10 Check the field values 01:28 Build a labelled f-string 01:51 Check the labelled output 02:02 Update one field and predict 02:30 Check before and after 02:43 Collect two records in a list 03:13 Loop through records and predict 03:39 Check the two loop results 03:52 Your turn 04:15 Add and run the books record 04:43 Check the added record 04:54 Recap and next lesson NEXT LESSON Reuse the total calculation with a function. Official references: https://docs.python.org/3.12/tutorial/datastructures.html#dictionaries https://docs.python.org/3.12/tutorial/inputoutput.html#formatted-string-literals Programming Line | Python for Absolute Beginners Narration: Simran, an AI-generated voice. The lesson uses genuine screen-recorded Python demonstrations. #Python #PythonForBeginners #ProgrammingLine…more
Give each expense named fields with a Python dictionary. This lesson reads values by key, formats a clear message, updates one amount, and stores multiple expense records in a list. Then use a for loop to display every record. You will learn: - How dictionary keys connect to values - How key lookup differs from a list index - How to use field values inside an f-string - How assigning to one key updates its value - How an unchanged loop processes another record The example uses fictional categories and whole-rupee amounts. The first two output lines demonstrate an amount changing from 120 to 130; later lines come from the record loop. CHAPTERS 00:00 Welcome to named fields 00:23 Create a dictionary record 00:49 Read fields and predict 01:10 Check the field values 01:28 Build a labelled f-string 01:51 Check the labelled output 02:02 Update one field and predict 02:30 Check before and after 02:43 Collect two records in a list 03:13 Loop through records and predict 03:39 Check the two loop results 03:52 Your turn 04:15 Add and run the books record 04:43 Check the added record 04:54 Recap and next lesson NEXT LESSON Reuse the total calculation with a function. Official references: https://docs.python.org/3.12/tutorial/datastructures.html#dictionaries https://docs.python.org/3.12/tutorial/inputoutput.html#formatted-string-literals Programming Line | Python for Absolute Beginners Narration: Simran, an AI-generated voice. The lesson uses genuine screen-recorded Python demonstrations. #Python #PythonForBeginners #ProgrammingLine