스터디/파이썬 스터디 과제

[3팀/안소연] 6차시 파이썬 과제-문자열

알 수 없는 사용자 2023. 5. 10. 15:56

1번

- 5번

 

2번

- 5번

 

3번

This is New AI World

4번

sentence= 'Hello,my name is python?!'
print(sentence[0]+sentence[5]+sentence[7:10])

5번

- 4번

 

6번

- d

 

7번

- 1번

 

8번

- 2번

 

9번

str1=input(str())
str2=input(str())

if str2 in str1:
    print(1)

else: print(2)

10번

A,B= map(int,input().split())

if A>B:
    print(str(B)[::-1])
else:
    print(str(A)[::-1])

11번

S=input()
alphabet='abcdefghigklmnopqrstuvwxyz'
i=0

for i in alphabet:
    if i in S:
        print(S.find(i))

    else: print(-1)