
지문🔊 Read Text Yesterday afternoon, Sarah was walking home from school when she noticed something on the ground. It was a brown leather wallet. Curious, she picked it up and opened it. Inside, she found some cash and a student ID with the name "James Lee" on it. Sarah decided to find the owner. She went to the nearby library, thinking James might be there. Luckily, she found him sitting at a ta..

문제두개의 입력이 주어집니다. 문자열(str)와 정수(n)를 문자열을n 번 반복하여 출력하는 문제 입니다.https://school.programmers.co.kr/learn/courses/30/lessons/181950?language=python3 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 문제 풀이input 함수로 두 개의 입력을 받아옵니다.첫 번째는 문자열 str, 두 번째는 정수 n 입니다.split() 함수로 입력을 공백 기준으로 나눕니다.int() 함수로 n을 정수로 변환합니다.문자열 반복 연산 *을 사용해 문자열 str를 n번 반복한 문자열을 만들고 print() 함수로 출력합니다. ..

문제두 개의 정수 a와 b가 입력으로 주어지고, 각 수의 출력 형식에 맞게 코드 작성https://school.programmers.co.kr/learn/courses/30/lessons/181951?language=python3 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 문제 풀이 input() 함수를 사용해 사용자 입력을 받아옵니다.split() 함수로 입력 문자열을 공백 기준으로 나누어 두 값을 얻습니다.map() 함수와 int() 함수로 두 값을 정수로 변환합니다.a와 b 변수를 각각 저장하고, f-string을 사용해 형식에 맞게 출력합니다. 코드a, b = map(int, input()...

문제 입력된 문자열을 그대로 출력하는 문제 입니다.https://school.programmers.co.kr/learn/courses/30/lessons/181952 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 문제 풀이input() 함수를 사용해 문자열을 입력받습니다.이 함수는 표준 입력(키보드)에서 한 줄의 문자열을 입력받아 문자열(str) 형식으로 반환합니다.print() 함수를 사용해 입력받은 문자열을 그대로 출력합니다.print()는 전달된 값을 출력하며, 기본적으로 줄 바꿈(\n)이 포함됩니다 코드s = input() # 입력을 받아 변수 s에 저장print(s) # 입력받은 문..

지문 🔊 Read Text Last Sunday, Mark woke up early and planned to spend the day at home. He was about to start his homework when he heard a loud noise coming from the backyard. Curious, he stepped outside and discovered a small kitten hiding under the bushes. The kitten seemed scared and hungry. Mark quickly went back into the house and brought out a bowl of milk. He carefully plac..