파이썬 코딩 질문
-
게시물 수정 , 삭제는 로그인 필요
안녕하세요, 학교 숙제로 파이썬 코딩 문제가 나왔는데 어떻게 하는지 전혀 모르겠어서 질문 남깁니다. 코드 어떻게 적어야하는지 알려주신다면 감사하겠습니다.
1. Write a function that takes 4 integers then return the smallest one.
expected input: 3, 6, 1, 15
expected output: 1
2. write a function that find the n-th prime number.
example input: 3
example output: 5
3. write a python function called print_star_pattern that takes one parameter, num_lines, an integer representing the number of lines in the pattern. The function should print the following pattern of stars:
Example Output for print_star_pattern(5)
*
**
***
****
*****
****
***
**
*
너무 어려워요ㅠㅠ 답 좀 알려주시면 감사하겠습니다.
#파이썬 코딩 #파이썬 코딩도장 #파이썬 코딩테스트 #파이썬 코딩 사이트 #파이썬 코딩 연습 사이트 #파이썬 코딩 프로그램 #파이썬 코딩의 기술 #파이썬 코딩테스트 준비 #파이썬 코딩테스트 함수 #파이썬 코딩테스트 예제