코딩/python
-
python-01 데이터 타입코딩/python 2023. 5. 1. 17:19
1. Hello world 출력 print('Hello World') 2. 변수 가상의 공간에 원하는 것을 넣는 것 a = 1 b = 2 #2a = 3 student_count= 100 address = '' print(a * b, student_count) 2 100이 출력된다. 3. 숫자형(numeric) 타입 정수(int), 실수(float), 복소수(complex) 존재한다. print(type(1)) #int print(type(2**31)) print(type(3.14)) # 실수 타입 print(type(314e-2)) print(type(3 - 4j)) # 복소수 x = 3 - 4j print(x.imag) # imag는 허수부 print(x.real) # real는 실수부 print(x...