Kauliņ, vēro mani!

Pareizi ir:  Mocarts, Bahs, Bēthovens
Pareizi ir:  Bēthovens, Mocarts, Bahs
Pareizi ir:  Bahs, Bēthovens, Mocarts
Pareizi ir:  Bēthovens, Bahs, Mocarts
Pareizi ir:  Bahs, Mocarts, Bēthovens
Pareizi ir:  Mocarts, Bēthovens, Bahs
No:
komponisti = ["Mocarts", "Bēthovens", "Bahs"]
for permutaacija in permutaacijas:
    print "Pareizi ir: ", ", ".join(
        komponisti[i] for i in permutaacija)

Comments

Augusts 2017

7d 1d 2d 3d 4d 5d 6d
  12345
6789101112
13141516171819
20212223242526
2728293031  
Powered by Sviesta Ciba