Why the result was "none" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why the result was "none"

#SOLVED #SOLVED https://code.sololearn.com/cAgL15zZbwxk/?ref=app

20th Jun 2020, 4:08 PM
Tzion
Tzion - avatar
6 Answers
+ 6
The output was None because append or extend does not return a value but None, which then is printed. BTW, what total number of combinations you have calculated?
20th Jun 2020, 5:57 PM
Lothar
Lothar - avatar
+ 6
I don't think that this is correct, must be much more. Here are 2 webpages that might help you: (1) permutation calculator: ( does not support multiple sets of objects https://www.calculatorsoup.com/calculators/discretemathematics/permutationsreplacement.php (2) explanation of the calculationd https://socratic.org/questions/license-plates-are-made-using-3-letters-followed-by-2-digits-how-many-plates-can
20th Jun 2020, 6:06 PM
Lothar
Lothar - avatar
+ 2
i guess i successfully solved this question.but my code wasn't the compatible.because i need to fix/ increase variable data while question getting larger.However idk why my output was "none"
20th Jun 2020, 5:50 PM
Tzion
Tzion - avatar
+ 1
im just trying doing my homework using programming , its kinda hard to understand my messy code.😂
20th Jun 2020, 4:11 PM
Tzion
Tzion - avatar
+ 1
i got a typo in comment of code, 4 letter , not 5 , shouldnt the formula 4P3 x 3P2 would be correct? 🤔 The references you provided contain the formula counted repeat letter/digits e.g : (b,b),(3,3).
20th Jun 2020, 6:10 PM
Tzion
Tzion - avatar
0
Lothar i guess is 24x6 which is 144?
20th Jun 2020, 5:59 PM
Tzion
Tzion - avatar