나의 작품

컴플레이랩 클래스 학생들의 작품들을 공유합니다.

9/2 ~ 9/9노정환

노정****
2024-09-02
조회수 67

1.

saved_id = "userid"
saved_pw = "password"
answer = input("아이디를 입력하세요.")
if answer == saved_id:
     answer2 = input("비밀번호를 입력하세요.")
     if answer2 == saved_pw:
          print("환영합니다.")
     else:
         print("다시 입력하세요.")
else:
    print("다시 입력해주세요.")

2.

while True:

    words = []
    sentence = input("문장을 입력하세요")
    words.append(print(sentence.split(' ')))
    print(len)
    for word in words:
        print(word.lower())

0 4
카카오톡 채널 채팅하기 버튼