Welcome to this lesson on data types and operators.
This is a very important lesson because it’s where you’ll learn about
the building blocks of Python datatypes and operators.
Students tend to learn how to program at different rates.
Take your time understanding each of the concepts that
follow and getting practice with activities in this lesson.
Having a firm grasp on these building blocks will provide a strong foundation
for future lessons and essential skills to continue programming beyond this course.
Throughout this course, we’ll go through code examples using these boxes.
This first box represents the Code Editor which is where we will input our Python code,
and the second box represents
the output window which is where our results will be displayed.
You can follow along with the video examples in
the classroom by typing in the code editor below each video.
Click the Test Run button to run your code and view the results in the output window.
You’ll be seeing this print function pretty often.
It helps us see what’s going on in our code.
For example, let’s say you wanted to compute three plus five.
If we run this line of code,
Python would still add three and five but we wouldn’t see
the result because we didn’t tell Python to do anything with it.
Print is a useful built-in function in Python that we can use to display our results.
All we have to do is type in Print followed by
parentheses around whatever we want printed.
You will be using Print often as you get to know the building blocks of Python,
its data types and operators.
데이터 유형 및 연산자에 대한 이 강의에 오신 것을 환영합니다.
에 대해 배우게 될 것이기 때문에 이것은 매우 중요한 교훈입니다.
Python 데이터 유형 및 연산자의 빌딩 블록.
학생들은 다른 속도로 프로그래밍하는 방법을 배우는 경향이 있습니다.
각 개념을 이해하는 데 시간을 할애하십시오.
이 단원의 활동을 따르고 연습합니다.
이러한 빌딩 블록에 대한 확고한 이해는 강력한 기반을 제공할 것입니다.
이 과정을 넘어 프로그래밍을 계속하는 데 필요한 미래의 수업과 필수 기술.
이 과정에서 이러한 상자를 사용하여 코드 예제를 살펴보겠습니다.
이 첫 번째 상자는 Python 코드를 입력할 코드 편집기를 나타냅니다.
두 번째 상자는 다음을 나타냅니다.
결과가 표시되는 출력 창입니다.
비디오 예제를 따라할 수 있습니다.
각 비디오 아래에 있는 코드 편집기에 입력하여 강의실.
테스트 실행 버튼을 클릭하여 코드를 실행하고 출력 창에서 결과를 봅니다.
이 인쇄 기능을 자주 보게 될 것입니다.
코드에서 무슨 일이 일어나고 있는지 보는 데 도움이 됩니다.
예를 들어 3 더하기 5를 계산하려고 한다고 가정해 보겠습니다.
이 코드 줄을 실행하면
파이썬은 여전히 3과 5를 추가하지만 우리는 보지 못할 것입니다.
결과는 우리가 파이썬에게 이것으로 아무것도 하지 말라고 지시하지 않았기 때문입니다.
Print는 결과를 표시하는 데 사용할 수 있는 Python의 유용한 내장 함수입니다.
우리가 해야 할 일은 Print를 입력한 다음
인쇄하려는 모든 항목을 괄호로 묶습니다.
Python의 구성 요소를 알게 되면서 Print를 자주 사용하게 될 것입니다.
데이터 유형 및 연산자.
댓글을 달려면 로그인해야 합니다.