๋ฐ์ํ
๋ณ์ ์ ์ธ
hello = "๋ณ์ ์ฌ์ฉํ์ฌ ๊ธด๋ฌธ์ฅ ์ถ๋ ฅํ๊ธฐ"
print(hello)
๋ณ์ ํ์
#type(๋ณ์๋ช
) -๋ณ์์ํํ ํ์ธํ๊ธฐ
num1 = 100
print(type(num1)) #int
num2 = "100"
print(type(num2)) #str
num3 = 0.1
print(type(num3)) #float
word = True
print(type(word)) #bool
plus1 = num1+20
print(plus1)
plus2 = num2+"20"
print(plus2)
๋ฐ์ํ
'๐Language > โ Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Python] list (1) | 2024.09.12 |
---|---|
[Python] ์ ์ (0) | 2024.09.11 |
[Python] ๋ฌธ์์ด (0) | 2024.09.11 |
[Python] ์ถ๋ ฅ / ์ฃผ์ (0) | 2022.02.27 |
[Python] Window - ์ค์น / ํ๊ฒฝ์ค์ / ๊ตฌ์ฑ (0) | 2022.02.27 |