Z13474: Unterschid zwische dr Versione
Added an implementation (in python) |
NiferO (Diskussion | Byträg) Translated content to igbo |
||
(4 Versione derzwüsche vo 3 andernen isch nid azeigt) | |||
Zyle 10: | Zyle 10: | ||
"Z14K3": { |
"Z14K3": { |
||
"Z1K1": "Z16", |
"Z1K1": "Z16", |
||
"Z16K1": |
"Z16K1": "Z610", |
||
⚫ | "Z16K2": "def Z13473(Z13473K1: str | int) -\u003E str:\n\tZ13473K1 = str(Z13473K1) # So that ints and strs work\n\t\n\tif not Z13473K1.isdigit(): raise TypeError # Makes sure that all characters are numbers\n\t\n\tZ13473K1 = list(Z13473K1) # so that we can use .insert() method\n\t\n\tif len(Z13473K1) \u003C= 3: return ''.join(Z13473K1) # if it is too short, do nothing\n\t\n\tfor i in range(len(Z13473K1)-3, 0, -3): # Go through the characters\n\t\tZ13473K1.insert(i, ',') # insert the commas\n\t\t\n\treturn ''.join(Z13473K1) # return" |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | "Z16K2": "def Z13473(Z13473K1):\n\tZ13473K1 = str(Z13473K1) # So that ints and strs work\n\t\n\tif not Z13473K1.isdigit(): raise TypeError # Makes sure that all characters are numbers\n\t\n\tZ13473K1 = list(Z13473K1) # so that we can use .insert() method\n\t\n\tif len(Z13473K1) \u003C= 3: return ''.join(Z13473K1) # if it is too short, do nothing\n\t\n\tfor i in range(len(Z13473K1)-3, 0, -3): # Go through the characters\n\t\tZ13473K1.insert(i, ',') # insert the commas\n\t\t\n\treturn ''.join(Z13473K1) # return" |
||
} |
} |
||
}, |
}, |
||
Zyle 20: | Zyle 17: | ||
"Z1K1": "Z12", |
"Z1K1": "Z12", |
||
"Z12K1": [ |
"Z12K1": [ |
||
"Z11" |
"Z11", |
||
{ |
|||
⚫ | |||
⚫ | |||
"Z11K2": "format large numbers by adding commas, python" |
|||
⚫ | |||
{ |
|||
"Z1K1": "Z11", |
|||
"Z11K1": "Z1014", |
|||
"Z11K2": "Hazie ọnụọgụgụ buru ibu site na ịgbakwunye rịkọm, python" |
|||
} |
|||
] |
] |
||
}, |
}, |
||
Zyle 32: | Zyle 39: | ||
"Z1K1": "Z12", |
"Z1K1": "Z12", |
||
"Z12K1": [ |
"Z12K1": [ |
||
"Z11" |
"Z11", |
||
{ |
|||
"Z1K1": "Z11", |
|||
"Z11K1": "Z1002", |
|||
"Z11K2": "Takes in a number as a string (or an int) and formats it with commas" |
|||
}, |
|||
{ |
|||
"Z1K1": "Z11", |
|||
"Z11K1": "Z1014", |
|||
"Z11K2": "Na-ewere ọnụọgụgụ dị ka eriri (ma ọ bụ int) wee jiri akara rịkọm hazie ya" |
|||
} |
|||
] |
] |
||
} |
} |
Aktuälli Version vu 04:57, 1. Jun. 2024
Diese Seite wird ohne JavaScript nur in eingeschränkter Weise angezeigt.