python-2.5 tag

2 questions


1 answers
52 views
0
To obtain all possible permutations from a list

How do we find all possible permutations as elements of the list?For example, permutations([1, 2]) ->[1, 2][2, 1]permutations([1, 2, 3]) ->[1, 2, 3][1, 3, 2][2, 1, 3][2, 3, 1][3, 1, 2][3, 2, 1]W...


1 answers
43 views
0
Python place value

Hello! While making otp with Python, I have a question, so I'm asking you this question!I want to print out only 6 digits of the algorithm that makes the otp value, but there is a problem with 7 to 9 ...

2 years ago

© 2024 OneMinuteCode. All rights reserved.