F

@fbtjdwo

11/14 내장 함수 / 사용자 정의 함수

Python
15 hours ago
''' print("Hello world!") #출력하는 함수 a = input() #입력하는 함수 sum([10, 20, 30]) #합계를 구하는 함수 len("abcdef") #길이를 구하는 함수 max([40, 50, 30, 20, 10]) #최댓값 구하는 함수 min([30, 40, 20, 10, 50]) #최소값 구하는 함수 ''' def add():

11/10 튜플 딕셔너리

Python
4 days ago
#변하지 않은 자료 tuple = (10, 20, 30) print(tuple[1]) print(tuple[0:2]) print(tuple[tuple]) # key & Value 서로 짝이 있는 자료 dict = {'apple':'사과'} print(dict[;apple]) #딕셔너리 추가

10/31 문자열, 리스트 메서드

Python
2 weeks ago
a = [1, 2, 3, 4, 5] a.pop(2) #인덱스 2번째 삭제 a.pop() #맨 마지막 삭제 print(a) b = [1, 1, 1, 2, 3, 1] print(b.count(1)) c = "i like python" print(c.split(""))

10/31 while, break, continue

Python
2 weeks ago
i = 0 while i < 10: print(i) i+=1 i = 10 while i > 0: print(i) i-=2

10/24 반복문, for문, range 함수

Python
3 weeks ago
''' for i in [1, 2, 3]: print(i) for i in "abcd": print(i) for i in range(5): #0~4 print(i)

10/10 elif문, 리스트 메서드

Python
1 month ago
''' n = int(input()) if n >= 90: print("a") elif n >= 80: print("b") elif n >= 70: print("c") else:

10/3 숫자 맞추기

Python
1 month ago
a = int(input()) if a <= 10: print("한자리 수") elif a <= 100: print("두자리 수") elif a <= 1000: print("세자리 수") else: print("숫자가 너무 큽니다.")

10/3 파이썬 elif, 리스트의 메서

Python
1 month ago
age = int(input()) if age >= 8 and age <= 13: print("초등학생입니다") elif age >= 14 and age <= 16: print("중학생입니다") elif age >= 17 and age <= 19: print("고등학생입니다") else: print("학생이아닙니다")

9/19 파이썬 비교 연산,논리 연산, if, else

Python
1 month ago
print(1>2) print(1 == 1) print(1 > 2 and 1 == 1) print(10 != 1 or 10 == 1) print(not 3 > 2) age = int(input()) if age >= 8 or age <= 13: print("초등학생 입니다.")

9/12 파이썬 인덱스, 인덱싱,슬라이싱,input(), type()

Python
2 months ago
c = ['성룡', '선우', '성재','지온'] print(c[2]) s = "python" print (s[0 : 4]) print(s[3:]) print(s[:4]) print(s[:]) name = input() age = input()

9/11 파이썬 자료형, 변수, 사칙연산

Python
2 months ago
""" print('Hello world!') print(7) print(0.12) print("hello") print("apple") print([1, 2, 3, "assd", 0.234]) """