티스토리 뷰
def odd(given_number):
"""Determine the given_number is odd or not"""
print("Given_number:", given_number," is odd" if given_number%2 ==1 else "is not odd")
return given_number % 2
'언어 > Python' 카테고리의 다른 글
List Comprehensions in Python (0) | 2021.01.01 |
---|---|
Python sublist, slicing (0) | 2020.12.31 |
Access and Print a list of lists (0) | 2020.12.31 |
Python 논리 연산자 not (0) | 2020.12.30 |
Docstring (0) | 2020.12.28 |