Shaibal Haqueshaibalpersonalblog.hashnode.dev·Jul 3, 2024CS50P: how the way of the duck changed me.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 ...Discusscs50
Karabo Molefikarabomolefi.hashnode.dev·May 10, 2024Solving CS50P - Problem Set 7In 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...Discusscs50
Karabo Molefikarabomolefi.hashnode.dev·May 3, 2024Solving CS50P - Problem Set 6In 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...Discusscs50p
Karabo Molefikarabomolefi.hashnode.dev·Apr 26, 2024Solving CS50P - Problem Set 5In 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 ...Discusscs50p
Karabo Molefikarabomolefi.hashnode.dev·Apr 19, 2024Solving CS50P - Problem Set 4Libraries 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...Discuss·51 readspython beginner
Karabo Molefikarabomolefi.hashnode.dev·Apr 12, 2024Solving CS50P - Problem Set 3Exceptions 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...Discuss·1 like·83 readsPython
Karabo Molefikarabomolefi.hashnode.dev·Apr 5, 2024Solving CS50P - Problem Set 2In 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...Discuss·112 readsPython
Karabo Molefikarabomolefi.hashnode.dev·Mar 29, 2024Solving CS50 Python - Problem Set 1Hi 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 ...Discuss·184 readsPython
Natsukinatsuki.hashnode.dev·Mar 29, 2024CS50 Python Week 1 Conditionalshttps://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...DiscussPython
Natsukinatsuki.hashnode.dev·Mar 28, 2024Week 0 Functionshttps://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...Discussweek0