#내장함수
'''
print()
input()
len() 시퀀스 자료의 길이 확인
int(), str() 자료형 변환
sum() 시퀀스 자료의 합 확인
max() 최대값 찾기
min() 최소값 찾기
'''
print(min('apple'))
print(max([1, 2, 3, 4]))
print(max(('가', '나', '다')))
print(sum([1, 2, 3, 4, 5]))
#메서드 : 특정 자료 .점을 찍어서 사용
a = 'Python is Fun'
'''
문자열 메서드
lower() 모두 소문자
upper() 모두 대문자
find(a) a가 처음 나오는 인덱스 출력
replace(a, b) a를 b로 바꾼다
split(a) a를 기준으로 나눈다
'''
print(a.lower())
print(a.upper())
print(a.find('Is')) #없으면 -1이 나온다
print(a.replace(' ', '-'))
print(a.split())
print('----문제----')
#이메일 주소에서 사용자명 추출 프로그램 만들기
email = 'student123@gmail.com'
#1단계 나누기
part = email.split('@')
print(part)
#2단계 사용자명 선택하기
print(part[0])
print('student123@gmail.com'.split('@')[0])
a, b = input().split()
print(a)
print(b)
To embed this project on your website, copy the following code and paste it into your website's HTML: