kaggle 3

Lesson 2_ Functions - Tutorial

Introduction이 과정에서는 함수(functions)를 사용한 코드를 구성하는 법을 배워요.함수는 특정 작업을 수행하기 위해 코드 블록(code block)으로 만들어져요.따라서 반복적으로 같은 계식을 간단히 줄일 수 있죠.이제 함수에 대해 알아볼게요.모든 함수는 헤더(header)와 바디(body)로 이루어져 있어요. a simple example- 함수에 대한 이해를 돕기 위한 간단한 예시를 보며 헤더와 바디에 대해 알아보아요.# Define the functiondef add_three(input_var): output_var = input_var + 3 return output_var Header- 헤더는 함수의 이름을 인자(argument)와 함께 정의(definition)하는..

Lesson 1_ Arithmetic and Variables - Exercise

Question 1- print() 코드를 실행해보기- check() 코드는 답을 확인해주므로 삭제시키지 않도록 주의하기print("Hello, world!") # DO NOT REMOVE: Mark this question as completed q1.check()Hello, world!  Question 2- print() 코드의 내용을 직접 바꿔보기# TODO: Change the message print("Have a nice day!") print("Python code") # DO NOT REMOVE: Mark this question as completed  q2.check()Have a nice day!Python code Question 3- hint() 코드는 실행시키면 힌트를 준다- ..

Lesson 1_ Arithmetic and Variables - Tutorial

IntroductionIntro to Programming 코스는 코드의 single line도 적지 못하고,데이터 공학에 관심이 있는 사람에게 적합하다.Python은 데이터 공학에 자주 쓰이는 프로그래밍 언어이다.이 코스를 마친 후 Python course를 가는 것을 추천한다. Printing- message를 출력하기 위해서 print()를 사용한다.print("Hello, world!")Hello, world! Arithmetic- 덧셈, 뺄셈, 곱셈, 그리고 나눗셈과 같은 산수 작업의 value를 출력할 수 있다.OperationSymbolExampleAddition+1 + 2 = 3Subtraction-5 - 4 = 1Multiplication*2 * 4 = 8Division/6 / 3 = 2..