+ 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

5th Jun 2021, 5:01 PM
Parisan Ahmadi
Parisan Ahmadi - avatar
10 Respuestas
+ 5
When you forget to print the answer in the output
5th Jun 2021, 5:07 PM
The future is now thanks to science
The future is now thanks to science - avatar
+ 4
Parisan Ahmadi You no need to multiply with 2. Just do this remains_book= total_books % (section1 + section2) print(remains_book)
5th Jun 2021, 5:07 PM
A͢J
A͢J - avatar
+ 4
Ohhh great, i didn't know that, many thanks 🤩🤩🎉🎉👍👍👍
5th Jun 2021, 5:17 PM
Parisan Ahmadi
Parisan Ahmadi - avatar
+ 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 👍👍🎉🎉🎉🎉🎉🎉🎉🤩🤩🤩🤩
5th Jun 2021, 5:13 PM
Parisan Ahmadi
Parisan Ahmadi - avatar
+ 2
Parisan Ahmadi Yes we have but no need because without multiply with 2 will also work.
5th Jun 2021, 5:15 PM
A͢J
A͢J - avatar
+ 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
5th Jun 2021, 5:25 PM
A͢J
A͢J - avatar
+ 2
Ohhhh yeah... Really appreciate it, i didn't attention to this point.. You're right, thanks for your complete explanation 🤩🤩👌👌👌🙏🙏🙏
5th Jun 2021, 6:20 PM
Parisan Ahmadi
Parisan Ahmadi - avatar
+ 1
Ohhh it's just the only problem?
5th Jun 2021, 5:08 PM
Parisan Ahmadi
Parisan Ahmadi - avatar
+ 1
I used multiple cus two type of book, math and history we have you know?
5th Jun 2021, 5:10 PM
Parisan Ahmadi
Parisan Ahmadi - avatar
- 1
hii
16th Jun 2021, 2:13 PM
Sayed Akter
Sayed Akter - avatar