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...DiscussPython
Sukalyan Roysukalyanroy.hashnode.dev·Apr 2, 2024CS50 My experienceAlmost everyone knows about the free course offered by Harvard, CS50x Introduction to Computer Science. I took this course in the gap between the end of High school and the beginning of College, dropped it for almost a year because I didn't feel like...Discuss·10 likescs50
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
woodstockwoodstock.hashnode.dev·Feb 21, 2024[배열] 배열(2)우리가 특정 자료형의 변수를 선언하면 이는 메모리상 어딘가에 특정 크기만큼의 자리를 차지하게 된다. 만약 비슷한 종류의 값을 모아서 저장하고 싶다면 어떻게 해야 할까? 메모리상에서 여러 값을 연이어서 저장하고 사용하는 방법과 그 이점을 알아보자. 전역 변수 #include <cs50.h> #include <stdio.h> const int N = 3; int main(void) { // 점수 배열 선언 및 값 저장 int s...DiscussHarvard CS50array
woodstockwoodstock.hashnode.dev·Feb 20, 2024[배열] 배열(1)우리가 특정 자료형의 변수를 선언하면 이는 메모리상 어딘가에 특정 크기만큼의 자리를 차지하게 된다. 만약 비슷한 종류의 값을 모아서 저장하고 싶다면 어떻게 해야 할까? 메모리상에서 여러 값을 연이어서 저장하고 사용하는 방법과 그 이점을 알아보자. 메모리 C에는 아래와 같은 여러 자료형이 있고, 각각의 자료형은 서로 다른 크기의 메모리를 차지한다. > bool: 불리언, 1바이트 char: 문자, 1바이트 int: 정수, 4바이트 float:...DiscussHarvard CS50array
Pratik Kalepk-coding-journey.hashnode.dev·Feb 20, 2024Reflecting on CS50x: Week 1 ReflectionHey everyone, It's been a while since I last wrote a blog post. To be honest, there hasn't been much going on in my life lately. I've mostly been busy preparing for my college exams, nose buried in textbooks and lecture notes. But today, on the 20th ...DiscussCS50x Journeycs50
woodstockwoodstock.hashnode.dev·Feb 18, 2024[배열] 디버깅우리가 소스코드를 작성하다보면, 때때로 우리 의도와는 다른 오류나 결과를 맞닥뜨리게 된다. 이를 “버그”라고 하는데, 버그를 효과적으로 찾고 해결하는 방법에 대해 알아 보자. 버그와 디버깅 버그(bug)는 코드에 들어있는 오류로, 버그로 인해 프로그램의 실행에 실패하거나 프로그래머가 원하는 대로 동작하지 않게 된다. 디버깅(debugging)은 코드에 있는 버그를 식별하고 고치는 과정으로, 프로그래머는 디버거라고 불리는 프로그램을 사용하여 디버...DiscussHarvard CS50cs50
Pratik Kalepk-coding-journey.hashnode.dev·Feb 14, 2024My First Day with CS50x 2024Today marked the beginning of an exciting new chapter in my journey as a student of computer science. I officially enrolled in CS50x 2024, a renowned computer science course offered by Harvard University. CS50x is an introductory course to computer s...DiscussCS50x JourneyHarvard CS50 course
woodstockwoodstock.hashnode.dev·Feb 13, 2024[c언어] Quiz진행 날짜 2024년 2월 15일 범위 C 기초 문자열 조건문과 루프 자료형, 형식 지정자, 연산자 사용자 정의 함수, 중첩 루프 하드웨어의 한계 Mission Quiz 1. 스크래치에서 아래 블록이 의미하는 것과 동일한 역할을 하는 함수를 C언어로 올바르게 작성한 것은 무엇일까요? 정답 int main(void) Quiz 2. 스크래치에서 아래 블록이 의미하는 것과 동일한 역할을 C언어로 올바르게 표현한건 무엇인가요? 정답 prin...DiscussHarvard CS50cs50