-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcb5a8f
commit 89a20ad
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
print("Ctrl + F5 : 실행") | ||
print("%s + 연결합니다 + %s" % ("첫번째 인자값", "두번째 인자 값")) | ||
print("%s + 그리고 + %s + 그리고 + %s" % ("첫번째 인자값", "두번째 인자값", "세번째 인자값")) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
''' | ||
문단주석 | ||
''' | ||
|
||
# int 는 숫자 | ||
stock_price = 5000 | ||
print("stock_price : %s" % stock_price) | ||
print(type(stock_price)) | ||
|
||
# float 소수점을 가진 숫자! | ||
stock_earning = 3.7 | ||
print("stock_earning : %s" % stock_earning) | ||
print(type(stock_earning)) | ||
|
||
# str 은 문자 | ||
stock_name = "문자입니다." | ||
print("stock_name : %s" % stock_name) | ||
print(type(stock_name)) | ||
|
||
# bool (true,false) | ||
stock_boolean = True | ||
print("stock_boolean : %s" % stock_boolean) | ||
print(type(stock_boolean)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
''' | ||
덧셈, 뺄셈, 곱셈, 나눗셈 | ||
''' | ||
|
||
#int 더하기 | ||
stock_price1 = 1000 | ||
stock_price2 = 2000 | ||
|
||
stock_price_total = stock_price1 + stock_price2 | ||
print("%s" % stock_price_total) | ||
|
||
#int 빼기 | ||
stock_price_minus1 = stock_price1 - stock_price2 | ||
print("%s" % stock_price_minus1) | ||
|
||
#int 곱하기 | ||
stock_price_multiple = stock_price1 * stock_price2 | ||
print("%s" % stock_price_multiple) |