Academic Model Answers
Library for UK Postgraduates

Browse tutor-verified model answers across MBA, Law, Finance, Research Methods and more. Use as study references for your own work.

200 model answers 30+ subjects covered 50+ UK universities
Find your assignment

Search the Library

Filter by keyword, subject, or both. Updates live as new model answers are added to our portal.

Filtering by “Python Programming” Clear filters

Available Model Answers (2)

Real-time Database Sync
Programming for Data Science 2,500 words

Individual Coursework – Programming for Data Science

This Individual Coursework assignment for the Programming for Data Science module requires students to demonstrate practical programming skills and the ability to critically select and apply Python data science tools and libraries. The assessment is worth 20 credits and has a word count of 2,500 words plus 10%, excluding the reference list and output. Students are required to submit one clearly organised report covering two tasks and their individual subtasks. Task 1 focuses on designing, building, testing, explaining, adapting and critiquing a Python program. Students are required to implement a dice-based football match simulation for two players using at least two Python functions. The implementation should follow the logic of the physical dice game, demonstrate good Python coding style, and use functions designed with high cohesion and low coupling. The report must include the full Python code and carefully selected output from a sample match that demonstrates the progression of the game and changes in the score. Students must not implement a Python class or graphical visualisation. The second part of Task 1 requires students to explain how they designed their implementation, including assumptions, incremental development and testing. They must then modify their program to estimate at least two performance measures relevant to a football manager. The coursework asks students to investigate how these measures change when a restrictive shot clock is introduced and to model a realistic “Hail Mary” shot when the shot clock is close to expiring. Students must provide modified Python code, clearly identify the changes made, include selected output for checking the logic, and provide a robust conclusion based on comparison of the results. Task 2 focuses on critically assessing, selecting and applying Python data science libraries and algorithms. Students must describe an applied data science problem involving unstructured data such as image, audio, video or text. They must provide a specific example based on the context of a Coventry University fresher and explain how the problem could be solved manually. Students then select two Python libraries, justify their selection, compare their capabilities, apply both libraries to the chosen problem, and provide the relevant Python code and output. The final part of Task 2 requires a critical assessment of the selected Python libraries using the student's experience and additional sources. Factors may include coding difficulty, adaptability, level of control and quality of the resulting solution. Students must make a reasoned assessment of the suitability of the libraries for their chosen application and support their discussion with appropriate references. The assignment assesses three module learning outcomes: understanding essential programming concepts relevant to data science; designing, building, testing, explaining, adapting and critiquing small programs in a high-level programming language; and critically assessing, selecting and applying data science tools, libraries or algorithms for different applications and tasks. The submission must be provided as a single Microsoft Word or PDF report, organised by subtask, with each task starting on a new page. Python code, relevant output and plots must be included directly in the report. The brief requires APA referencing and states that sources should be cited in-text with a reference list for each task where relevant.

Read Model Answer →
Programming for Data Science 4,000 words

Programming for Data Science – Individual Portfolio

This individual portfolio assessment for the Programming for Data Science module at Coventry University consists of four tasks designed to assess programming, debugging, data science, data visualisation, data protection and data ethics skills. The assessment carries 20 credits and has a total value of 4,000 words equivalent, excluding the reference list and output. Students are required to submit one clearly organised report containing all four tasks, with each task beginning on a new page. Python code, outputs and relevant plots must be included directly within the report. Task 1 focuses on analysing, critiquing and debugging Python code. Students are required to identify syntax errors, logical errors, style and readability issues in a supplied program, determine what the program is intended to calculate, and make appropriate corrections. Students must test the program using varying values, explain the changes made, and improve its overall readability and annotation so that an unfamiliar user can understand it. The task also requires students to investigate computational efficiency by measuring execution time for different input limits and identifying more efficient coding or logical approaches. Task 2 requires students to design, build and test a simple Python implementation of the Blackjack card game. The program should simulate a single-player game against a computer-controlled dealer, allow the player to choose between hitting and standing, automatically simulate the dealer's turn, and offer the option to play additional rounds. Complex rules such as splitting and betting are excluded, and students must not implement a Python class or graphical visualisation. The submission must include the Python code and the output from five games, with sufficient storytelling in the output to allow the code to be tested from the results shown. Task 3 assesses the student's ability to critically assess, select and apply data science tools. Students work with animal lifespan information from the AnAge database and use Python, including pandas and appropriate graphical libraries, to explore and communicate insights. The task involves summarising the number of animal species represented within each animal Class and producing plots of maximum longevity against adult weight for the four Classes with the most represented species. Students must discuss whether smaller or larger animals live longer, identify extreme outliers, compare trends between animal groups and consider implications for ageing research. Task 4 examines data protection and data ethics using the Cancer Genome Atlas (TCGA) as a case study. Students must explain how a potential data breach could occur, identify the personal and sensitive information that could be compromised, and discuss consequences for patient confidentiality, institutional reputation, participation in future research and possible legal or public relations responses. A second part considers a hypothetical UK database and requires discussion of GDPR and the UK Government Data Ethics Framework, including informed consent, anonymisation, transparency, ethical governance, privacy and public trust in biomedical research. The assessment assesses two module learning outcomes. MLO2 focuses on designing, building, testing, adapting and critiquing small programs in a high-level programming language and is assessed through Tasks 1 and 2. MLO3 focuses on critically assessing, selecting and applying data science tools, libraries or algorithms throughout the data science project lifecycle and is assessed through Tasks 3 and 4. The assignment requires APA referencing and asks students to provide in-text citations and reference lists where relevant. The brief also classifies the assessment as “Amber” for Generative AI: AI tools may be used for inspiration but not to generate answers or analyse datasets. Any permitted use must be clearly acknowledged, documented and cited using APA style.

Read Model Answer →