02. Python 데이터 타입, 숫자형 및 연산자
Python 데이터 타입 종류 Boolean Numbers String Bytes Lists Tuples Sets Dictionaries 1. 데이터 타입 선언 데이터 타입별 선언은 다음과 같다. #데이터 타입 선언 v_str1 = "Hello" #String v_bool = True#Boolean v_str2 = "World"#String v_float = 10.3#Float v_int = 7#Int v_dict = {#Dictinaries "name" : "hong", "age" : 21 } v_list = [ 3,7, 9]#List v_tuple = 3,5,7#Tuple v_set = { 7,8,9}#Set 2. 데이터 타입 확인 데이터 타입 확인은 type() 함수를 이용하여 확인 할 수 있다. ..
Python
2021. 5. 7. 14:26