Uploaded February 2023 | Updated December 2026, 14 minutes ago
In this video, we explain how to work with user input, output and operations. We take a look at how to write a simple program to calculate area and we explore mathematical, logical and comparison operators.
š See the full free GSCE Python course here:
youtube.com/watch?v=lv8Tl5lBJC0&list=PLrIm-p2rpV0Hczso9dnu_sAJucaaAD_Hc
š GSCE Computer Science Paper 2022 Walkthrough (OCR J277/02)
youtube.com/watch?v=bmrVVtvtZGY
š ļø Tools:
1. PyCharm Community Edition - Free Official Download jetbrains.com/pycharm/download/#section=windows
š Contents:
00:00 - Intro
00:31 - Calculate area with user input
04:11 - Mathematical operators
06:08 - Comparison operators
09:00 - Logical operators
#gcse #computerscience #ocr #python #pythonbeginners #pythonoperators
In this video, we explain how to work with user input, output and operations. We take a look at how to write a simple program to calculate area and we explore mathematical, logical and comparison operators.
š See the full free GSCE Python course here:
youtube.com/watch?v=lv8Tl5lBJC0&list=PLrIm-p2rpV0Hczso9dnu_sAJucaaAD_Hc
š GSCE Computer Science Paper 2022 Walkthrough (OCR J277/02)
youtube.com/watch?v=bmrVVtvtZGY
š ļø Tools:
1. PyCharm Community Edition - Free Official Download jetbrains.com/pycharm/download/#section=windows
š Contents:
00:00 - Intro
00:31 - Calculate area with user input
04:11 - Mathematical operators
06:08 - Comparison operators
09:00 - Logical operators
#gcse #computerscience #ocr #python #pythonbeginners #pythonoperators



![Part 17 - Slight refactor and clean up [How to use TDD to build a REST API in Laravel 6]
Letās do some clean up. We updated most places in the code base to use the constants from the model, but we did not update everything. I noticed a few occurrences.
Letās check our tests. You know, this is part of owning and maintaining a code base is. We might add something for the benefit of the code base but not go about it the right way. Thatās not ideal, but in our scenario, we have tests to cover any changes we make. We also have time to maintain our codebase. So when we are refactoring, we must be confident our tests will catch our bugs.However, tests are only as good as you write them to be. So when you write a test, think about what you are testing and ask yourself: Does your test actually cover that scenario.
Check migration, factory, controller. After those changes, letās run our test suite to make sure everything still works as expected. I canāt stress how important it is to keep doing this. Keep your code cycles small. Same with your commits. Letās commit this work.
Another important lesson to learn is, donāt keep dead code in a database. You are much better off removing stuff you donāt need. Letās start with this controller. We can remove the create() and edit() methods.
We can also get rid of our User model and we can also get rid our User factory. Run your test suite. As expected, everything passes.
Watch next video here:
https://youtu.be/ugy6MEeeVWI
Watch this course in full here:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F-rl4NPjNslEmW-D83AHOr
Laravel Tutorials:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ
2 - 3 min Developer Quick Tips Series:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelBWatch this course in full here:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F-rl4NPjNslEmW-D83AHOr Part 17 - Slight refactor and clean up [How to use TDD to build a REST API in Laravel 6]](https://i.ytimg.com/vi/ngW5raXk6mA/mqdefault.jpg)






![Part 5 - Install and Bootstrap Codeception [How to use TDD to build a REST API in Laravel 6]
Like I said in a previous video, I would like to do as many things within PhpStorm as I can. Letās open up our version control panel. You might see some idea files. It is not common practice to commit this to the repository. The idea files contain configurations for the IDE on a per project basis. We can ignore them in this tutorial. Letās update our .gitignore file. For simplicity, feel free to revert the idea files you may have too.
We can commit our changes, using Ctrl + K. Wherever possible, I am going to be using shortcuts. I will let you know what they are, the first time I use them.
Now, letās install Codeception. To install codeception, run the composer command:
ācomposer require codeception/codeception devā. The ā devā flag will save Codeception as a dev requirement in our composer.json file. To speed up the download process, I will just skip ahead.
If we take a look in our project view, we can see our composer.json and composer.lock file has been updated. Letās open up our composer.json. You can see Codeception has been added as a dev dependency.
Before we initialise Codeception. Letās take a look at our Tests folder. We have some default Laravel stuff in here. Letās get rid of it, to keep this folder clean. When we boootstrap Codeception, it will create new files here.
To bootstrap Codeception, open up the terminal. To save time, do this outside of Vagrant. Whenever you can do something, outside of the virtual machine, take the opportunity to do so. Whenever we run operations within the virtual machine, it is always going to be slower than out.
Run āvendor/bin/codeceptā. This will give us a list of available commands. We want to use the Bootstrap command. So letās run āvendor/bin/codecept bootstrapā. This will generate new files and folders in our test directory.
Letās take a look. We now have Codeception installed and initialised. Letās commit our work.
Watch next video:
https://youtu.be/JWW4r1xM4Q4
Watch this course in full here:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F-rl4NPjNslEmW-D83AHOr
Laravel Tutorials:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ
2 - 3 min Developer Quick Tips Series:
https://www.youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelB Part 5 - Install and Bootstrap Codeception [How to use TDD to build a REST API in Laravel 6]](https://i.ytimg.com/vi/r_ttRXID8kE/mqdefault.jpg)