-
-
Notifications
You must be signed in to change notification settings - Fork 106
feat: menambahkan algoritma krisnamurty #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
other/krisnamurtyCheck.py
Outdated
| temp = number | ||
| total = 0 | ||
| while temp > 0: | ||
| digit = temp % 10 | ||
| total += factorial(digit) | ||
| temp //= 10 | ||
| if total == number: | ||
| return benar | ||
| else : | ||
| return bukan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bisa pakai model list comprehension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jadi susah di pahamin nanti bang menurut ku
|
@slowy07 bisa di cek dulu bang,tapi kalo aku lebih suka yang bukan list compresion karna lebih enak di baca,rinci dan mudah di pahami 🙏 🙏 🙏 |
Co-authored-by: arfy slowy <[email protected]>
Deskripsi (Description)
Saya menambahkan algoritma baru pada dictionary
otherChecklist:
Umum:
Contributor Requirements (Syarat Kontributor) dan Lain-Lain:
Unit Testing dan Linting:
Environment
Saya menggunakan (I'm using):
os=windowspython=py -3 -V (Windows-Python launcher)linked issue #