+ 3
How can I can I solve this problem?
This is first project in python for beginners, and it's about student text book, I've written but it's not correct and unlock https://code.sololearn.com/c60lllrt0P1a/?ref=app
10 odpowiedzi
+ 5
When you forget to print the answer in the output
+ 4
Parisan Ahmadi
You no need to multiply with 2.
Just do this
remains_book= total_books % (section1 + section2)
print(remains_book)
+ 4
Ohhh great, i didn't know that, many thanks 🤩🤩🎉🎉👍👍👍
+ 3
Ohhh many thanks The future is now thanks to science[LESS ACTIVE] i forgot print to output... The rear of code didn't any problem... Many thanks 👍👍🎉🎉🎉🎉🎉🎉🎉🤩🤩🤩🤩
+ 2
Parisan Ahmadi
Yes we have but no need because without multiply with 2 will also work.
+ 2
Parisan Ahmadi
Here is proof:
76 % (18 + 19)
= 76 % 37
= 2
(1) 76 = 37 * 2 + 2
------------+------
76 % ((18 + 19) * 2)
= 76 % (37 * 2)
= 76 % 74
= 2
(2) 76 = 74 + 2
See the above two case (1) and (2) both gives same output so no need to multiply with 2
(1) 37 * 2 + 2 = 76
(2) 74 + 2 = 76
+ 2
Ohhhh yeah... Really appreciate it, i didn't attention to this point.. You're right, thanks for your complete explanation 🤩🤩👌👌👌🙏🙏🙏
+ 1
Ohhh it's just the only problem?
+ 1
I used multiple cus two type of book, math and history we have you know?
- 1
hii