Mine sisu juurde

Z15570: erinevus redaktsioonide vahel

Allikas: Wikifunctions
➕Python avoiding truthiness
 
prefer “item” to “element” in source code (after “wikilambda-list-item-label”)
11. rida: 11. rida:
"Z1K1": "Z16",
"Z1K1": "Z16",
"Z16K1": "Z610",
"Z16K1": "Z610",
"Z16K2": "def Z12684(Z12684K1):\n\tfor element in Z12684K1:\n\t\tif not element == True:\n\t\t\treturn False\n\treturn True"
"Z16K2": "def Z12684(Z12684K1):\n\tfor item in Z12684K1:\n\t\tif not item == True:\n\t\t\treturn False\n\treturn True"
}
}
},
},

Redaktsioon: 8. aprill 2024, kell 12:55

This page displays in a limited way without JavaScript.