King's College London · S1 2026 · FACULTY OF ARTS & HUMANITIES

7AAVDH10 Coding and the Humanities

- one subject, every graph, every model, every mark
6 Chapters29-page Bible
Our own words - no uploaded lecturer files
Built to mirror S1 2026 · updated this semester
The Complete Exam Bible · S1 2026/27

7AAVDH10 Overview

Coding and the Humanities
— Trace Python code, then connect its output to a defensible humanities claim.
  • Semester 1, 2026/27
  • Postgraduate module
  • Exam plus coding project
  • Python and digital humanities

Python foundations for humanities research

Coding and the Humanities begins with Python values, strings, numbers, lists, indices, slices, dictionaries, Booleans, conditionals, loops and user-defined functions. These ideas are taught as practical foundations for digital humanities work.

  • Exam coverage The Week 5 component tests Python concepts from weeks one to four.
  • Project evidence The notebook must make code skills, validation and interpretation visible.
  • Best revision move Predict outputs and trace state changes before checking Python.
  • Research boundary Connect every computational result to data scope and method limits.
Why read this guide

What you get in the full 7AAVDH10 Exam Bible

  1. 6 chapters, 29 pages — every examinable topic, week by week
  2. 17 original practice questions, each with a model answer in the Final Coding Project format
  3. 6 worked examples, solved the way 7AAVDH10 marks
  4. 13 computed figures, redrawn from the course’s own numbers
  5. Exam-morning plan for the Final Coding Project (70%) — what to revise last, where marks are lost

Free on this page: assessment table, chapter map, one worked example, key terms, FAQ. The rest is in the full exam bible.

7AAVDH10 · King's College London
An independent, AskSia-authored study guide. AskSia is not affiliated with, endorsed by, or sponsored by King's College London; the course code and name are used for identification only.
Assessment

How 7AAVDH10 is assessed

ComponentWeightFormat
Computer marked assessment30%Online exam on weeks 1 to 4 Python concepts, planned for Week 5
Final Coding Project70%800-word document plus one Jupyter Notebook, due in January

The Semester 1 syllabus publishes both component weights, which total 100%. The Week 3 slides add the twenty-question, in-person multiple-choice format for the first component.

Assessment structure

Exam 30%Project 70%Published weights total 100%

Segment widths reproduce the two published weights.

Other students are asking · 7AAVDH10

What other students are asking about 7AAVDH10

Where can I find lecture notes or study guides for 7AAVDH10 at King's?
The 7AAVDH10 study guide in AskSia Library covers Coding and the Humanities in 6 chapters, with the assessment table, a chapter-by-chapter topic map, key terms and a worked example, free to read on this page.
Is there a final exam in 7AAVDH10?
No final exam is listed in the offering this AskSia Library guide is built from; 7AAVDH10 is assessed by Computer marked assessment 30%, Final Coding Project 70%.
What does 7AAVDH10 cover on lists, indices and slices?
In AskSia Library's 7AAVDH10 guide, the Lists, Indices and Slices chapter explains trace position, range, nesting and mutation through ordered Python data.
What does 7AAVDH10 cover on booleans and conditional branches?
In AskSia Library's 7AAVDH10 guide, the Booleans and Conditional Branches chapter explains evaluate conditions, order branches and test the threshold cases.
What does 7AAVDH10 cover on loops and user-defined functions?
In AskSia Library's 7AAVDH10 guide, the Loops and User-Defined Functions chapter explains follow changing state and package one accountable transformation for reuse.
Weights, dates and every chapter are set out with their sources further down this page.
Current dates · verify in LMS

Current 7AAVDH10 dates

DateItemControl
26 October 2026Planned Week 5 examThe syllabus places the in-lecture test in Week 5.
12 January 2027Final project deadlineThe KEATS submission area prints 14:00 as the deadline time.

Dates are as published in the Semester 1, 2026/27 KEATS module materials. Confirm exact operational instructions on KEATS.

Contents · every chapter, one map

What 7AAVDH10 covers

Six chapters move from Python values and control flow to data methods, research design and the final coding project.

01

Values, Strings and Type Boundaries

Predict string, number and slice behaviour before executing a notebook cell

Predict before Python answers

This chapter separates textual values from numeric values, then uses that distinction to explain concatenation, repetition, conversion and type errors.

  • String operations
  • Numeric values
  • Explicit conversion
  • Zero-based indexing
  • Slice boundaries
  • Length checks
In the full guide: 3 pages · 2 practice questions · 2 figures
02

Lists, Indices and Slices

Trace position, range, nesting and mutation through ordered Python data

Read sequence structure explicitly

Lists reuse Python's indexing and slicing rules while adding mutation. This chapter distinguishes retrieving one item, selecting a range, replacing an existing item, appending one item and combining two lists.

  • List syntax
  • Item mutation
  • Append method
  • List concatenation
  • Nested records
  • Aliasing checks
In the full guide: 4 pages · 2 practice questions · 2 figures
03

Booleans and Conditional Branches

Evaluate conditions, order branches and test the threshold cases

Turn a rule into a test

Boolean expressions translate comparisons, equality and membership into True or False. Conditional statements then use those results to select an indented action.

  • Boolean values
  • Comparison operators
  • Membership tests
  • Conditional indentation
  • Branch order
  • Truthiness
In the full guide: 3 pages · 2 practice questions · 2 figures
04

Loops and User-Defined Functions

Follow changing state and package one accountable transformation for reuse

Trace repeated state

A for loop applies one body to successive items. A user-defined function packages a named transformation with explicit inputs and a returned result.

  • For loops
  • Loop variables
  • Accumulators
  • Function parameters
  • Return values
  • Validation inputs
In the full guide: 4 pages · 2 practice questions · 2 figures
05

Data Work for Humanities Questions

Connect acquisition, cleaning, analysis and visualisation to a cultural question

Build an auditable research chain

The applied syllabus moves through pandas, cleaning, exploration, visualisation, natural language processing, APIs and web scraping. This chapter organises those tools around a humanities question.

  • Data scope
  • Cleaning rules
  • Pandas workflow
  • Visualisation checks
  • API boundaries
  • Qualified interpretation
In the full guide: 4 pages · 2 practice questions · 2 figures
06

Research Design and Final Project

Align the rationale, notebook, criteria, visual evidence and project limitations

Align the two submitted files

The final project combines an 800-word rationale with one Jupyter Notebook. The rationale frames an original digital humanities question, scholarship, method, findings and limitations.

  • Research aims
  • Research questions
  • Academic context
  • Notebook structure
  • Code criteria
  • Submission audit
In the full guide: 3 pages · 2 practice questions · 2 figures

This guide treats each concept as an evidence problem: identify the input type, trace the operation, predict the output and explain the boundary that could change the result.

The first four chapters support closed-note preparation for the Week 5 computer-marked exam.

From code output to a research claim

The applied weeks move into pandas, cleaning, exploration, visualisation, natural language processing, APIs and web scraping. The important transition is methodological.

A tool is useful only when its transformation serves a defined humanities question and leaves a trace that another reader can inspect. The later chapters therefore connect data scope, cleaning rules, validation, denominators, charts, interpretation and limitations.

The final coding project

The final project joins an 800-word rationale to one Jupyter Notebook.

It asks for an original digital humanities question, relevant scholarship, data and method choices, code that advances the research aim, interpreted outputs and a discussion of limitations. The notebook should show meaningful variables, sequences, a loop, a conditional, a user-defined function, data work, saved visualisations and extensive explanation.

This guide uses small original examples so you can rebuild the logic without reproducing assessment material.

A practical route through the guide

Begin each topic with a small value you can trace by hand. Write the expected type, position, truth value or accumulator state before Python produces an answer. Compare prediction with output and keep the first mismatch in an error ledger.

Then change one boundary while preserving the rest of the example. For project work, apply the same discipline to a known record, a negative control and a missing case before scaling up. This turns correction into a reusable method and makes the final notebook easier to explain.

Worked example · free

Trace a humanities classification

Q [8 marks]. AskSia-authored practice. Classify a small set of dated records, validate the branch boundaries and explain what the output can support. The marks shown are a study allocation, not an official University marking scheme.
Decision path.Decision path. A single comparison divides records at the printed threshold, and the Boolean result determines which labelled branch executes.year < 1900?early collectionlater collectionTrueFalseone Boolean controls one path
Decision path. A single comparison divides records at the printed threshold, and the Boolean result determines which labelled branch executes.
  • 2Define the data type and threshold rule. The marks shown are a study allocation, not an official University marking scheme.
  • 3Trace each record through the first matching branch.
  • 3Validate boundary cases and qualify the claim.
The response prints each comparison, checks records exactly on both thresholds and reports the resulting categories. It limits interpretation to the supplied records and states that the thresholds are analytical choices rather than properties discovered by Python. The marks shown are a study allocation, not an official University marking scheme.
Sia tip — Write the Boolean result beside every condition before naming the selected branch.
Glossary

Key terms

String
A string is an ordered sequence of characters used to represent text.
Integer
An integer is a whole-number value that supports arithmetic operations.
Index
An index identifies one position in an ordered Python sequence.
Slice
A slice retrieves a range whose start is included and stop is excluded.
List
A list is a mutable ordered sequence that can contain different kinds of values.
Boolean
A Boolean is a truth value, either True or False, used by conditional logic.
Conditional
A conditional selects an action according to the truth value of a test.
Loop
A loop repeats one code body for successive items in an iterable.
Function
A function is a named, reusable block that accepts inputs and may return a result.
Dataframe
A dataframe is a labelled tabular structure used to organise and transform data.
Validation
Validation checks an operation against known examples, boundaries or expected outputs.
Research Question
A research question states the focused cultural problem that evidence and method will address.
FAQ

7AAVDH10 FAQ

What does the Week 5 exam cover?

The syllabus states that the computer-marked online exam covers fundamental Python concepts taught in weeks one to four. The Week 3 slides describe twenty multiple-choice questions based on those notebooks, delivered in person through KEATS. Revise types, sequences, Booleans, conditionals, loops and functions through closed-note output traces.

How should I practise Python foundations?

Predict every output before running the cell, then compare the observed value and type with your reasoning. Mark indices and slice stops, write Boolean results beside conditions, and record accumulator state after every loop iteration. Changed boundary cases reveal whether you understand the rule or only remember one example.

Why do slices exclude the stop position?

Python slice notation includes the start and excludes the stop. Treat the stop as the first position outside the selected interval, then mark the surviving cells before evaluating the expression. This convention makes adjacent slices meet cleanly, but it remains a common source of off-by-one errors in exam questions and data work.

How do I debug conditional branches?

Evaluate each condition separately from top to bottom and record True or False. The first matching branch runs and later branches are ignored. Test values exactly on each threshold, then inspect indentation if the condition is correct but the action is not. Explain why the category boundary serves the research purpose.

What should the final coding project contain?

The brief asks for an 800-word rationale and one Jupyter Notebook with all Python code. It names research framing, academic references, data and method, findings, limitations, meaningful variables, sequences, a loop, a conditional, a user-defined function, data work, at least two saved visualisations and extensive comments or markdown.

How may generative AI be used in the project?

The brief applies a minimal policy to the rationale, so generated prose should not be pasted into it. Coding assistants are permitted for code under the stated open policy, but prompts must be included in comments and the notebook must explain alterations, purpose and each code section clearly enough to demonstrate your own understanding.

Chapter questions

Questions students ask in each 7AAVDH10 chapter

Why does text plus a number fail?
Python does not silently decide whether text should become a number or a number should become text. Choose a conversion that matches the data's role, then verify the resulting value and type before the next operation. Chapter 01 · Values, Strings and Type Boundaries
How is append different from addition?
The append method changes one list by adding its argument as a single new item. List addition creates a combined sequence from two lists, so the choice depends on whether mutation or a new value is intended. Chapter 02 · Lists, Indices and Slices
Why does branch order matter?
Python stops at the first matching branch. A broad condition placed before a stricter one can capture values too early, so write categories in plain language and order overlapping thresholds deliberately. Chapter 03 · Booleans and Conditional Branches
Why does my function stop after one item?
A return statement is probably indented inside the loop. That placement ends the entire function on the first pass, so keep updates inside the loop and return the completed result afterwards. Chapter 04 · Loops and User-Defined Functions
Why are cleaning choices analytical?
Removing, merging or normalising values changes what the dataset represents. Record the rule, compare row counts before and after, inspect examples and explain why the transformation serves the research question. Chapter 05 · Data Work for Humanities Questions
How narrow should the project question be?
It should identify a cultural object, comparison or pattern and the evidence needed to address it within the available project scope. A focused question makes data selection, code choices and interpretation easier to justify. Chapter 06 · Research Design and Final Project
Study strategy

How to study for the exam

Use a three-pass cycle. First, retrieve one rule without notes and predict the result of a small original example. Second, execute the example and write the first assumption that differed from Python's behaviour. Third, alter one boundary while holding other facts stable: change a type, move a slice stop, place a value on a threshold, empty a sequence or move the return statement.

For project preparation, translate the same cycle into question, method and evidence. Define the unit of analysis, preserve counts before and after cleaning, validate one known record, print numerators with denominators, and write a claim at the scale supported by the source. Keep an error ledger organised by type, position, condition, state and interpretation.

In the final week, rebuild the chapter examples closed-note, then audit the notebook from a clean run and match every published criterion to visible evidence.

A+Everything unlocked
Unlocks this Bible + all 18 of your subjects at King's College London, plus 1,000+ more Bibles across the AskSia library.
Sia - your 7AAVDH10 tutor, unlimited, worked the way the exam marks it
The full 29-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works