Skip to content

Commit

Permalink
Add summary of 2024-02-09
Browse files Browse the repository at this point in the history
  • Loading branch information
drvinceknight committed Feb 12, 2024
1 parent cd980d8 commit 1db2db6
Show file tree
Hide file tree
Showing 3 changed files with 714 additions and 1 deletion.
20 changes: 20 additions & 0 deletions _posts/2024-02-09-objects-cli-and-editor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
layout: post
title: "Objects, command line and editors"
tags:
- object-oriented-programming
- using-a-terminal-and-an-editor
---

On Friday we had two separate classes. In the first we spoke about object
oriented programming and in the second we spoke about another way of
interacting with python.

You can see a recording of these:

- [https://cardiff.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=aa74cd8d-642f-47e3-ae83-b10c00d6c8cd](https://cardiff.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=aa74cd8d-642f-47e3-ae83-b10c00d6c8cd)
- [https://cardiff.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=6fc0e603-b5fc-498a-8c97-b10c0118ba4a](https://cardiff.cloud.panopto.eu/Panopto/Pages/Viewer.aspx?id=6fc0e603-b5fc-498a-8c97-b10c0118ba4a)

In the upcoming classes I will be covering specific topics relevant to the
marking scheme. I'll be illustrating these using an example of a project to give
you more ideas of expectations.
7 changes: 6 additions & 1 deletion assets/nbs/2023-2024/functions-and-data-structures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@
" int\n",
" The value of the left hand side.\n",
" \"\"\"\n",
" return sum(int(scipy.special.binom(n, i)) * a ** i * b ** (n - i) for i in range(n + 1))"
" return sum(\n",
" int(\n",
" scipy.special.binom(n, i)\n",
" ) * a ** i * b ** (n - i) \n",
" for i in range(n + 1)\n",
" )"
]
},
{
Expand Down
Loading

0 comments on commit 1db2db6

Please sign in to comment.