PyCon UK 2019

Writing Beautiful Python. An overview of PEP 8
09-14, 15:00–15:30 (Europe/London), Room D

Writing code that looks nice can be hard. Why do we need nice looking code anyway? In this talk I'll give you a tour of PEP 8 (The Style Guide for Python Code) and show you how you can force yourself to write code that looks nice.


What is beautiful code? What makes code beautiful? Why should I write beautiful code? These might be question you are currently asking yourself. In this talk I will not only answer these question but also give you a tour of PEP 8 (the official style guide for python). During this 'tour' I will show you examples of both well formatted and badly formatted code and will explain the difference and why they are important.

It can be hard to memorise all these 'rules'. Luckily for you, you don't have to. There are two types of tools I will go over that help you write nice looking code:
* A Linter will notify you of badly formatted code.
* An auto formatter will reformat you code on save to comply with the standards).

At the end of the this talk you will have to tools and knowledge necessarily to go forth and right beautiful code.


Is your proposal suitable for beginners? – yes

Luke Spademan is currently studying A Level Maths, Further Maths, Computer Science, and Physics. When he isn't doing school work he enjoys writing python programs and playing with opensource applications.

This speaker also appears in: