I started learning how to program for a very academic reason, to pass O-level CSC I needed to learn basic html and css. Soon afterwards I looked up CS50x through a reference from one of my peers from my schools CS club and watched a few lectures and ...
In this problem set we explore the use of regexes (regular expressions) to examine patterns within our code. Regular expressions enable us to examine expressions in patterns, for a example that of an email address. ℹ Disclaimer: The following code s...
In this Problem Set we explore File I/O (input/output), which is the ability of a program to take a file as input or create a file as output. ℹ Disclaimer: The following code solutions are for educational purposes only and are not intended to be use...
In this Problem set we revisited some of our older problems and wrote test code to check that the code is working as expected. With the help of the pytest library we were able to test our code in the terminal, by calling pytest (filename). Pytest is ...
Libraries are snippets of code written by you or others that you can use in your program. Using libraries can save time and effort for both novice and experienced programmers, preventing the need to reinvent the wheel when encountering certain proble...
Exceptions are errors that occur within our coding. We will discuss how to handle exceptions in Python using try and except, which are ways of testing out user input before something goes wrong. ℹ Disclaimer: The following code solutions are for edu...
In this article, we will be delving into loops and dictionaries in Python. Loops are a fundamental aspect of programming, and there are various ways to use them to solve problems. Feel free to explore alternative approaches to the problems. ℹ Discla...
Hi everyone. Today, I present to you my solutions to CS50P Problem Set 1. I hope you utilize them to explore different approaches to the same problem. ℹ Disclaimer: The following code solutions are for educational purposes only and are not intended ...
https://cs50.harvard.edu/python/2022/weeks/1/ YouTube cs50.dev Problem Set 1 > # greater than >= # greater than or equal to < # less than <= # less than or equal to == # equal to != # not equal to if if - youtube code compare.py x = int(inp...
https://cs50.harvard.edu/python/2022/weeks/0/#week-0-functions hello.py code hello.py print("hello, world") Command-line Interface python hello.py Functions, Arguments, Side Effects functions print() is a function arguments inside of () a ar...