분류 전체보기
-
아몬드봉봉 팀: 모각코 1주차 1회모임 결과 (22.07.04 / 월요일 / 21시 ~ 24시)카테고리 없음 2022. 7. 4. 23:44
1-1. 숫자자료형 : 연산 가능 1-2. 문자열 자료형 : ' ' 나 " "이용, *로 문자열을 여러번 출력가능 1-3. boolean 자료형 : 참과 거짓, 앞에 not을 붙여서 결과를 반대로 출력 가능 ex) print(5>10) 하면 False print(not (5>10)) 는 True 1-4. 변수 : 값을 저장하는 공간 변수를 출력문에 넣을 때 " " 을 이어줄 때 +로 연결 정수형, boolean형을 출력할 때는 문자열로 바꿔서 print문에 넣어준다. +str(변수명)+ +대신 ,도 사용가능 이때, 정수형, boolean형을 문자열로 바꿔줄 필요x But 자동으로 띄워쓰기가 된다. 변수를 선언하고 밑에 줄에 같은 변수를 다르게 선언하면 그 줄 아래부터는 변경된 변수가 출력된다 1-5. 주..
-