Skip to content

Commit

Permalink
Create 2024-10-07-정보처리기사
Browse files Browse the repository at this point in the history
  • Loading branch information
gghwan authored Oct 7, 2024
1 parent 6caf32b commit c9ab4ab
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions _posts/2024-10-07-정보처리기사
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 빌트인 타입의 실제 값
values = [
42, # int
3.14, # float
1 + 2j, # complex
True, # bool
"Hello, World!", # str
[1, 2, 3], # list
(1, 2, 3), # tuple
{1, 2, 3}, # set
{"a": 1, "b": 2, "c": 3}, # dict
b"Hello, World!", # bytes
bytearray(b"Hello, World!"), # bytearray
memoryview(b"Hello, World!"), # memoryview
range(10), # range
None # NoneType
]
# 번호를 매겨서 실제 값과 타입을 출력하는 코드
for index, value in enumerate(values, start=1):
print(f"{index}. {value} - {type(value)}")

0 comments on commit c9ab4ab

Please sign in to comment.