Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Attention
- Python
- overfitting
- Transformer
- deep learning
- sigmoid
- GNN
- Classificaion
- word2vec
- Set Transformer
- Self-loop attention
- pytorch
- XOR
- NLP
- python practice
- sentence embedding
- neural net
- machine learning
- elif
- abstraction
Archives
- Today
- Total
목록Even number (1)
Research Notes

# 짝수인지 홀수인지 판단해주는 is_evenly_divisible 함수를 쓰세요. # is_evenly_divisible는 number(수)를 파라미터로 받습니다. # 짝수인 경우에는, 즉 number가 2로 나누어 떨어질 경우에는 True를 리턴해줍니다. # 홀수인 경우에는, 즉 number가 2로 나누어 떨어지지 않을 경우에는 False를 리턴해줍니다. # 함수 안에는 print문을 사용하시면 안 되고, return문을 사용하여야 합니다. def is_evenly_divisible(number): return bool(number % 2 == 0) print(is_evenly_divisible(3)) print(is_evenly_divisible(7)) print(is_evenly_di..
Programming Language/Python
2023. 7. 3. 16:20