Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Absolute
- AGI
- ai
- AI agents
- AI engineer
- AI researcher
- ajax
- algorithm
- Algorithms
- aliases
- Array 객체
- ASI
- bayes' theorem
- Bit
- Blur
- BOM
- bootstrap
- canva
- challenges
- ChatGPT
Archives
- Today
- In Total
목록divmod (1)
A Joyful AI Research Journey🌳😊
Understanding Floor Division and the divmod Function in Python
a, b = 15, 4 print(a // b, a % b) print(divmod(a, b)) result) 3 3 (3, 3) The divmod(a, b) function is a built-in function in Python that takes two numbers as arguments and returns a tuple containing two values: the quotient (the result of the floor division a // b) and the remainder (a % b). Essentially, it combines the operations of floor division and modulo in a single function.
🌳Coursework ✨/Discrete Maths
2024. 2. 4. 07:00