Raven 10.8 naloge Python
Napišite kodo, ki bo preverjala zahtevnost gesla. Kriterije zahtevnosti si izmislite sami.
Podan je seznam. Izpišite v konzolo vse možne permutacije elementov tega seznama.
Izpišite seznam vseh prijateljskih števil iz danega intervala.
Naj v datoteki hrani JSON mest naslednje oblike:
{
[
"id": "1",
"city": "city1",
"country": "country1",
],
[
"id": "2",
"city": "city2",
"country": "country1",
],
[
"id": "3",
"city": "city3",
"country": "country2",
]
}
Naj v datoteki hrani JSON držav naslednje oblike:
{
[
"id": "1",
"country": "country1",
],
[
"id": "2",
"country": "country2",
],
[
"id": "3",
"country": "country3",
]
}
Napišite skript, ki bo namesto
držav vstavil njihove id:
{
[
"id": "1",
"city": "city1",
"country_id": "1",
],
[
"id": "2",
"city": "city2",
"country_id": "1",
],
[
"id": "3",
"city": "city3",
"country_id": "2",
]
}