Maven_super_31_100_Python_MotherShip_v5 - itnett/FTD02H-N GitHub Wiki

🐍 Python 100 Grunnleggende Konsepter

Dette dokumentet dekker de 100 mest grunnleggende Python-konseptene, med eksempler, lenker til ressurser og detaljerte forklaringer. Bruk denne listen som en ressurs for å lære og mestre Python.

# 📝 Konsept 🌐 Ressurser 💻 Eksempel
1 Print Statement W3Schools print("Hei, verden!")
2 Variables W3Schools navn = "Alice"
3 Data Types W3Schools alder = 30 (int), pris = 19.99 (float), er_student = True (bool)
4 Type Conversion W3Schools alder_str = "30"
alder_int = int(alder_str)
5 Strings W3Schools melding = "Dette er en streng"
6 String Concatenation W3Schools hilsen = "Hei, " + navn + "!"
7 String Methods W3Schools stor_melding = melding.upper()
8 User Input W3Schools brukernavn = input("Skriv inn navnet ditt: ")
9 Comments W3Schools # Dette er en kommentar
10 Arithmetic Operations W3Schools sum = 5 + 3
produkt = 5 * 3
11 Assignment Operations W3Schools x = 10
x += 5 (tilsvarer x = x + 5)
12 Comparison Operations W3Schools er_lik = (5 == 5)
er_større = (5 > 3)
13 Logical Operations W3Schools er_sant = (5 > 3) and (10 < 20)
14 Identity Operations W3Schools x = [1, 2, 3]
y = x
er_samme = (x is y)
15 Membership Operations W3Schools frukter = ["eple", "banan", "kirsebær"]
er_i = ("eple" in frukter)
16 Bitwise Operations W3Schools a = 60 (0011 1100)
b = 13 (0000 1101)
c = a & b # -> 12 (0000 1100)
17 If Statement W3Schools if x > 0:
print("x er positivt")
18 Else Statement W3Schools if x > 0:
print("x er positivt")
else:
print("x er ikke positivt")
19 Elif Statement W3Schools if x > 0:
print("x er positivt")
elif x == 0:
print("x er null")
else:
print("x er negativt")
20 Nested If Statement W3Schools if x > 0:
if x % 2 == 0:
print("x er positivt og partall")
21 For Loop W3Schools for i in range(5):
print(i)
22 While Loop W3Schools i = 0
while i < 5:
print(i)
i += 1
23 Break Statement W3Schools for i in range(10):
if i == 5: break
print(i)
24 Continue Statement W3Schools for i in range(10):
if i % 2 == 0: continue
print(i)
25 Pass Statement W3Schools if x > 0:
pass # Gjør ingenting for nå
26 Functions W3Schools def si_hei():
print("Hei!")
27 Function Arguments W3Schools def si_hei_til(navn):
print(f"Hei, {navn}!")
28 Default Arguments W3Schools def si_hei_til(navn="verden"):
print(f"Hei, {navn}!")
29 Keyword Arguments W3Schools def skriv_ut(tekst, farge="svart"):
print(f"{farge} tekst: {tekst}")
skriv_ut(tekst="Hei!", farge="rød")
30 Variable-length Arguments Real Python def skriv_liste(*elementer):
for element in elementer:
print(element)
skriv_liste(1, 2, 3, "hei")
31 Return Statement W3Schools def kvadrat(x):
return x * x
resultat = kvadrat(5)
32 Docstrings Real Python def legg_til(x, y):
"""Legger sammen to tall og returnerer resultatet."""
return x + y
33 Recursion Real Python def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)
34 Lambda Functions W3Schools, Real Python kvadrat = lambda x: x * x
print(kvadrat(5))
35 Map Function W3Schools, Real Python tall = [1, 2, 3, 4]
`kvadraterHer er en optimalisert tabell for Markdown-format som er godt egnet for GitHub Wiki, inkludert emojier, lenker og eksempler:
# 🐍 Python 100 Grunnleggende Konsepter

Dette dokumentet dekker de 100 mest grunnleggende Python-konseptene, med eksempler, lenker til ressurser og detaljerte forklaringer. Bruk denne listen som en ressurs for å lære og mestre Python.

| #  | 📝 Konsept | 🌐 Ressurser | 💻 Eksempel |
|----|------------|--------------|-------------|
| 1  | Print Statement | [W3Schools](https://www.w3schools.com/python/ref_func_print.asp) | `print("Hei, verden!")` |
| 2  | Variables | [W3Schools](https://www.w3schools.com/python/python_variables.asp) | `navn = "Alice"` |
| 3  | Data Types | [W3Schools](https://www.w3schools.com/python/python_datatypes.asp) | `alder = 30` (int), `pris = 19.99` (float), `er_student = True` (bool) |
| 4  | Type Conversion | [W3Schools](https://www.w3schools.com/python/python_casting.asp) | `alder_str = "30"`<br>`alder_int = int(alder_str)` |
| 5  | Strings | [W3Schools](https://www.w3schools.com/python/python_strings.asp) | `melding = "Dette er en streng"` |
| 6  | String Concatenation | [W3Schools](https://www.w3schools.com/python/python_strings_concatenate.asp) | `hilsen = "Hei, " + navn + "!"` |
| 7  | String Methods | [W3Schools](https://www.w3schools.com/python/python_ref_string.asp) | `stor_melding = melding.upper()` |
| 8  | User Input | [W3Schools](https://www.w3schools.com/python/ref_func_input.asp) | `brukernavn = input("Skriv inn navnet ditt: ")` |
| 9  | Comments | [W3Schools](https://www.w3schools.com/python/python_comments.asp) | `# Dette er en kommentar` |
| 10 | Arithmetic Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `sum = 5 + 3`<br>`produkt = 5 * 3` |
| 11 | Assignment Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `x = 10`<br>`x += 5` (tilsvarer `x = x + 5`) |
| 12 | Comparison Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `er_lik = (5 == 5)`<br>`er_større = (5 > 3)` |
| 13 | Logical Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `er_sant = (5 > 3) and (10 < 20)` |
| 14 | Identity Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `x = [1, 2, 3]`<br>`y = x`<br>`er_samme = (x is y)` |
| 15 | Membership Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `frukter = ["eple", "banan", "kirsebær"]`<br>`er_i = ("eple" in frukter)` |
| 16 | Bitwise Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `a = 60` (0011 1100)<br>`b = 13` (0000 1101)<br>`c = a & b`  # -> 12 (0000 1100) |
| 17 | If Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    print("x er positivt")` |
| 18 | Else Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    print("x er positivt")`<br>`else:`<br>`    print("x er ikke positivt")` |
| 19 | Elif Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    print("x er positivt")`<br>`elif x == 0:`<br>`    print("x er null")`<br>`else:`<br>`    print("x er negativt")` |
| 20 | Nested If Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    if x % 2 == 0:`<br>`        print("x er positivt og partall")` |
| 21 | For Loop | [W3Schools](https://www.w3schools.com/python/python_for_loops.asp) | `for i in range(5):`<br>`    print(i)` |
| 22 | While Loop | [W3Schools](https://www.w3schools.com/python/python_while_loops.asp) | `i = 0`<br>`while i < 5:`<br>`    print(i)`<br>`    i += 1` |
| 23 | Break Statement | [W3Schools](https://www.w3schools.com/python/python_for_loops.asp) | `for i in range(10):`<br>`    if i == 5: break`<br>`    print(i)` |
| 24 | Continue Statement | [W3Schools](https://www.w3schools.com/python/python_for_loops.asp) | `for i in range(10):`<br>`    if i % 2 == 0: continue`<br>`    print(i)` |
| 25 | Pass Statement | [W3Schools](https://www.w3schools.com/python/ref_keyword_pass.asp) | `if x > 0:`<br>`    pass  # Gjør ingenting for nå` |
| 26 | Functions | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def si_hei():`<br>`    print("Hei!")` |
| 27 | Function Arguments | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def si_hei_til(navn):`<br>`    print(f"Hei, {navn}!")` |
| 28 | Default Arguments | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def si_hei_til(navn="verden"):`<br>`    print(f"Hei, {navn}!")` |
| 29 | Keyword Arguments | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def skriv_ut(tekst, farge="svart"):`<br>`    print(f"{farge} tekst: {tekst}")`<br>`skriv_ut(tekst="Hei!", farge="rød")` |
| 30 | Variable-length Arguments | [Real Python](https://realpython.com/python-kwargs-and-args/) | `def skriv_liste(*elementer):`<br>`    for element in elementer:`<br>`        print(element)`<br>`skriv_liste(1, 2, 3, "hei")` |
| 31 | Return Statement | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def kvadrat(x):`<br>`    return x * x`<br>`resultat = kvadrat(5)` |
| 32 | Docstrings | [Real Python](https://realpython.com/documenting-python-code/) | `def legg_til(x, y):`<br>`    """Legger sammen to tall og returnerer resultatet."""`<br>`    return x + y` |
| 33 | Recursion | [Real Python](https://realpython.com/python-recursion/) | `def factorial(n):`<br>`    if n == 0:`<br>`        return 1`<br>`    else:`<br>`        return n * factorial(n-1)` |
| 34 | Lambda Functions | [W3Schools](https://www.w3schools.com/python/python_lambda.asp), [Real Python](https://realpython.com/python-lambda/) | `kvadrat = lambda x: x * x`<br>`print(kvadrat(5))` |
| 35 | Map Function | [W3Schools](https://www.w3schools.com/python/ref_func_map.asp), [Real Python](https://realpython.com/python-map-function/) | `tall = [1, 2, 3, 4]`<br>`kvadrater = list(map(lambda x: x * x, tall))` |
| 36 | Filter Function | [W3Schools](https://www.w3schools.com/python/ref_func_filter.asp), [RealHer er den optimaliserte tabellen for de 100 Python-konseptene, tilpasset for visning på en GitHub Wiki med emojier, korrektur og lenker til riktige ressurser:

```markdown
# 🐍 Python 100 Grunnleggende Konsepter

Dette dokumentet dekker de 100 mest grunnleggende Python-konseptene, med eksempler, lenker til ressurser og detaljerte forklaringer. Bruk denne listen som en ressurs for å lære og mestre Python.

| #  | 📝 Konsept | 🌐 Ressurser | 💻 Eksempel |
|----|------------|--------------|-------------|
| 1  | Print Statement | [W3Schools](https://www.w3schools.com/python/ref_func_print.asp) | `print("Hei, verden!")` |
| 2  | Variables | [W3Schools](https://www.w3schools.com/python/python_variables.asp) | `navn = "Alice"` |
| 3  | Data Types | [W3Schools](https://www.w3schools.com/python/python_datatypes.asp) | `alder = 30` (int), `pris = 19.99` (float), `er_student = True` (bool) |
| 4  | Type Conversion | [W3Schools](https://www.w3schools.com/python/python_casting.asp) | `alder_str = "30"`<br>`alder_int = int(alder_str)` |
| 5  | Strings | [W3Schools](https://www.w3schools.com/python/python_strings.asp) | `melding = "Dette er en streng"` |
| 6  | String Concatenation | [W3Schools](https://www.w3schools.com/python/python_strings_concatenate.asp) | `hilsen = "Hei, " + navn + "!"` |
| 7  | String Methods | [W3Schools](https://www.w3schools.com/python/python_ref_string.asp) | `stor_melding = melding.upper()` |
| 8  | User Input | [W3Schools](https://www.w3schools.com/python/ref_func_input.asp) | `brukernavn = input("Skriv inn navnet ditt: ")` |
| 9  | Comments | [W3Schools](https://www.w3schools.com/python/python_comments.asp) | `# Dette er en kommentar` |
| 10 | Arithmetic Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `sum = 5 + 3`<br>`produkt = 5 * 3` |
| 11 | Assignment Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `x = 10`<br>`x += 5` (tilsvarer `x = x + 5`) |
| 12 | Comparison Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `er_lik = (5 == 5)`<br>`er_større = (5 > 3)` |
| 13 | Logical Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `er_sant = (5 > 3) and (10 < 20)` |
| 14 | Identity Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `x = [1, 2, 3]`<br>`y = x`<br>`er_samme = (x is y)` |
| 15 | Membership Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `frukter = ["eple", "banan", "kirsebær"]`<br>`er_i = ("eple" in frukter)` |
| 16 | Bitwise Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `a = 60` (0011 1100)<br>`b = 13` (0000 1101)<br>`c = a & b`  # -> 12 (0000 1100) |
| 17 | If Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    print("x er positivt")` |
| 18 | Else Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    print("x er positivt")`<br>`else:`<br>`    print("x er ikke positivt")` |
| 19 | Elif Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    print("x er positivt")`<br>`elif x == 0:`<br>`    print("x er null")`<br>`else:`<br>`    print("x er negativt")` |
| 20 | Nested If Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    if x % 2 == 0:`<br>`        print("x er positivt og partall")` |
| 21 | For Loop | [W3Schools](https://www.w3schools.com/python/python_for_loops.asp) | `for i in range(5):`<br>`    print(i)` |
| 22 | While Loop | [W3Schools](https://www.w3schools.com/python/python_while_loops.asp) | `i = 0`<br>`while i < 5:`<br>`    print(i)`<br>`    i += 1` |
| 23 | Break Statement | [W3Schools](https://www.w3schools.com/python/python_for_loops.asp) | `for i in range(10):`<br>`    if i == 5: break`<br>`    print(i)` |
| 24 | Continue Statement | [W3Schools](https://www.w3schools.com/python/python_for_loops.asp) | `for i in range(10):`<br>`    if i % 2 == 0: continue`<br>`    print(i)` |
| 25 | Pass Statement | [W3Schools](https://www.w3schools.com/python/ref_keyword_pass.asp) | `if x > 0:`<br>`    pass  # Gjør ingenting for nå` |
| 26 | Functions | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def si_hei():`<br>`    print("Hei!")` |
| 27 | Function Arguments | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def si_hei_til(navn):`<br>`    print(f"Hei, {navn}!")` |
| 28 | Default Arguments | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def si_hei_til(navn="verden"):`<br>`    print(f"Hei, {navn}!")` |
| 29 | Keyword Arguments | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def skriv_ut(tekst, farge="svart"):`<br>`    print(f"{farge} tekst: {tekst}")`<br>`skriv_ut(tekst="Hei!", farge="rød")` |
| 30 | Variable-length Arguments | [Real Python](https://realpython.com/python-kwargs-and-args/) | `def skriv_liste(*elementer):`<br>`    for element i elementer:`<br>`        print(element)`<br>`skriv_liste(1, 2, 3, "hei")` |
| 31 | Return Statement | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def kvadrat(x):`<br>`    return x * x`<br>`resultat = kvadrat(5)` |
| 32 | Docstrings | [Real Python](https://realpython.com/documenting-python-code/) | `def legg_til(x, y):`<br>`    """Legger sammen to tall og returnerer resultatet."""`<br>`    return x + y` |
| 33 | Recursion | [Real Python](https://realpython.com/python-recursion/) | `def factorial(n):`<br>`    if n == 0:`<br>`        return 1`<br>`    else:`<br>`        return n * factorial(n-1)` |
| 34 | Lambda Functions | [W3Schools](https://www.w3schools.com/python/python_lambda.asp), [Real Python](https://realpython.com/python-lambda/) | `kvadrat = lambda x: x * x`<br>`print(kvadrat(5))` |
| 35 | Map Function | [W3Schools](https://www.w3schools.com/python/ref_func_map.asp), [Real Python](https://realpython.com/python-map-function/) | `tall = [1, 2, 3, 4]`<br>`kvadrater = list(map(lambda x: x * x, tall))` |
| 36 | Filter Function | [W3Schools](https://wwwDet virker som du ønsker en optimalisert, detaljerik tabell som dekker 100 grunnleggende Python-konsepter med detaljerte eksempler, lenker til ressurser, og korrektur for Markdown på GitHub Wiki. Her er en revidert versjon som du kan bruke:

```markdown
# 🐍 Python 100 Grunnleggende Konsepter

Dette dokumentet dekker de 100 mest grunnleggende Python-konseptene, med eksempler, lenker til ressurser og detaljerte forklaringer. Bruk denne listen som en ressurs for å lære og mestre Python.

| #  | 📝 Konsept | 🌐 Ressurser | 💻 Eksempel |
|----|------------|--------------|-------------|
| 1  | Print Statement | [W3Schools](https://www.w3schools.com/python/ref_func_print.asp) | `print("Hei, verden!")` |
| 2  | Variables | [W3Schools](https://www.w3schools.com/python/python_variables.asp) | `navn = "Alice"` |
| 3  | Data Types | [W3Schools](https://www.w3schools.com/python/python_datatypes.asp) | `alder = 30` (int), `pris = 19.99` (float), `er_student = True` (bool) |
| 4  | Type Conversion | [W3Schools](https://www.w3schools.com/python/python_casting.asp) | `alder_str = "30"`<br>`alder_int = int(alder_str)` |
| 5  | Strings | [W3Schools](https://www.w3schools.com/python/python_strings.asp) | `melding = "Dette er en streng"` |
| 6  | String Concatenation | [W3Schools](https://www.w3schools.com/python/python_strings_concatenate.asp) | `hilsen = "Hei, " + navn + "!"` |
| 7  | String Methods | [W3Schools](https://www.w3schools.com/python/python_ref_string.asp) | `stor_melding = melding.upper()` |
| 8  | User Input | [W3Schools](https://www.w3schools.com/python/ref_func_input.asp) | `brukernavn = input("Skriv inn navnet ditt: ")` |
| 9  | Comments | [W3Schools](https://www.w3schools.com/python/python_comments.asp) | `# Dette er en kommentar` |
| 10 | Arithmetic Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `sum = 5 + 3`<br>`produkt = 5 * 3` |
| 11 | Assignment Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `x = 10`<br>`x += 5` (tilsvarer `x = x + 5`) |
| 12 | Comparison Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `er_lik = (5 == 5)`<br>`er_større = (5 > 3)` |
| 13 | Logical Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `er_sant = (5 > 3) and (10 < 20)` |
| 14 | Identity Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `x = [1, 2, 3]`<br>`y = x`<br>`er_samme = (x is y)` |
| 15 | Membership Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `frukter = ["eple", "banan", "kirsebær"]`<br>`er_i = ("eple" in frukter)` |
| 16 | Bitwise Operations | [W3Schools](https://www.w3schools.com/python/python_operators.asp) | `a = 60` (0011 1100)<br>`b = 13` (0000 1101)<br>`c = a & b`  # -> 12 (0000 1100) |
| 17 | If Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    print("x er positivt")` |
| 18 | Else Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    print("x er positivt")`<br>`else:`<br>`    print("x er ikke positivt")` |
| 19 | Elif Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    print("x er positivt")`<br>`elif x == 0:`<br>`    print("x er null")`<br>`else:`<br>`    print("x er negativt")` |
| 20 | Nested If Statement | [W3Schools](https://www.w3schools.com/python/python_conditions.asp) | `if x > 0:`<br>`    if x % 2 == 0:`<br>`        print("x er positivt og partall")` |
| 21 | For Loop | [W3Schools](https://www.w3schools.com/python/python_for_loops.asp) | `for i in range(5):`<br>`    print(i)` |
| 22 | While Loop | [W3Schools](https://www.w3schools.com/python/python_while_loops.asp) | `i = 0`<br>`while i < 5:`<br>`    print(i)`<br>`    i += 1` |
| 23 | Break Statement | [W3Schools](https://www.w3schools.com/python/python_for_loops.asp) | `for i in range(10):`<br>`    if i == 5: break`<br>`    print(i)` |
| 24 | Continue Statement | [W3Schools](https://www.w3schools.com/python/python_for_loops.asp) | `for i in range(10):`<br>`    if i % 2 == 0: continue`<br>`    print(i)` |
| 25 | Pass Statement | [W3Schools](https://www.w3schools.com/python/ref_keyword_pass.asp) | `if x > 0:`<br>`    pass  # Gjør ingenting for nå` |
| 26 | Functions | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def si_hei():`<br>`    print("Hei!")` |
| 27 | Function Arguments | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def si_hei_til(navn):`<br>`    print(f"Hei, {navn}!")` |
| 28 | Default Arguments | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def si_hei_til(navn="verden"):`<br>`    print(f"Hei, {navn}!")` |
| 29 | Keyword Arguments | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def skriv_ut(tekst, farge="svart"):`<br>`    print(f"{farge} tekst: {tekst}")`<br>`skriv_ut(tekst="Hei!", farge="rød")` |
| 30 | Variable-length Arguments | [Real Python](https://realpython.com/python-kwargs-and-args/) | `def skriv_liste(*elementer):`<br>`    for elementer i elementer:`<br>`        print(elementer)`<br>`skriv_liste(1, 2, 3, "hei")` |
| 31 | Return Statement | [W3Schools](https://www.w3schools.com/python/python_functions.asp) | `def kvadrat(x):`<br>`    return x * x`<br>`resultat = kvadrat(5)` |
| 32 | Docstrings | [Real Python](https://realpython.com/documenting-python-code/) | `def legg_til(x, y):`<br>`    """Legger sammen to tall og returnerer resultatet."""`<br>`    return x + y` |
| 33 | Recursion | [Real Python](https://realpython.com/python-recursion/) | `def factorial(n):`<br>`    if n == 0:`<br>`        return 1`<br>`    else:`<br>`        return n * factorial(n-1)` |
| 34 | Lambda Functions | [W3Schools](https://www.w3schools.com/python/python_lambda.asp), [Real Python](https://realpython.com/python-lambda/) | `kvadrat = lambda x: x * x`<br>`print(kvadrat(5))` |
| 35 | Map Function | [W3Schools](https://www.w3schools.com/python/ref_func_map.asp), [Real Python](https://realpython.com/python-map-function/) | `tall = [1, 2, 3, 4]`<br>`kvadrater = list(map(lambda x: x * x,Det ser ut til at tabellen du ønsket å optimalisere ble ganske lang og kompleks, noe som resulterte i at en fullstendig og korrekt visning ble avbrutt. For å gjøre dette på en mer hensiktsmessig måte, kan vi bryte ned tabellen i mindre deler, eller laste opp hele tabellen som en separat fil som kan redigeres og brukes direkte i en GitHub Wiki.

For å holde det ryddig og for å sikre at alle lenker og eksempler fungerer korrekt i Markdown-formatet på GitHub, kan du følge disse trinnene:

1. **Del opp tabellen i seksjoner**: Du kan bryte ned tabellen i seksjoner på 10-20 konsepter hver, noe som gjør det enklere å administrere i en GitHub Wiki.

2. **Bruk en teksteditor**: Bruk en teksteditor som Visual Studio Code for å redigere og formatere hele tabellen før du limer den inn i en GitHub Wiki-siden.

3. **Valider Markdown-formatet**: Forsikre deg om at Markdown-formatet er korrekt ved å bruke en Markdown-validator eller forhåndsvise siden i GitHub.

Om du vil ha hele tabellen lastet opp som en fil, kan jeg gjøre det for deg. Eller om du vil ha hele tabellen delt opp i mindre deler, kan jeg også hjelpe med det. La meg vite hva som passer best for deg!
⚠️ **GitHub.com Fallback** ⚠️