Modern Python Projects Transcripts
Lecture: Source code for this chapter
0:00 I want to show you how to use Tox. And for that I need to have some code to actually run and test.
0:07 So I will reuse the simple calculator from the previous chapter. I've added the file with some tests, so we have three tests that we can run.
0:15 And one thing that is important about this code is that I am using, f string in this function and F strings were introduced to Python in version 3.6.
0:24 So you will see that when we run on older Python version, this code should fail.