Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Contents | Section
Test UI Course VN
Seksjon 1. Kapittel 1
single

single

bookContents

Sveip for å vise menyen

Heading H1

Heading H2

Heading H3

Heading H4

Heading H5
Heading H6

Text Formatting

Bold text

Italic text

Bold italic text

Strikethrough text

Underline (via HTML)

Inline code

This is a blockquote

Nested blockquote

Lists

Unordered List

  • Item 1
  • Item 2
    • Nested item
      • Deeper level

Ordered List

  1. First
  2. Second
    1. Nested
    2. Another nested item

Links

Regular link

Link with title

Anchor link: Go to Table

Images

Alt text

Table

Column 1Column 2Column 3
TextBoldCode
123456789

Code Blocks

Without syntax highlighting

Plain code text

Python

def hello(name):
    return f"Hello, {name}"

print(hello("Markdown"))

JavaScript

const greet = (name) => {
  console.log(`Hello, ${name}`);
};
greet("World");

HTML Inside Markdown

This is an HTML block.

Math (LaTeX, if supported)

Inline: E=mc2E = mc^2

Block:

abx2dx\int_{a}^{b} x^2 dx
1
print("Heloooo")
copy
12345
def greet(name): print(f"Hello, {name}!") if __name__ == "__main__": greet("World")
copy
def greet(name):
    print(f"Hello, {name}!")

if __name__ == "__main__":
    greet("World")

First, let's see how we can use variables to calculate the total cost of items. This example multiplies the price per unit by the quantity to determine how much it would cost to buy a certain number of items:

Note
Note

You can't use a variable before assigning a value to it. If you try to access a variable that hasn't been assigned, Python will raise a NameError. Always make sure to assign a value to your variable before you use it in calculations or print statements.

Note
Definition

You can't use a variable before assigning a value to it. If you try to access a variable that hasn't been assigned, Python will raise a NameError. Always make sure to assign a value to your variable before you use it in calculations or print statements.

Note
Study More

You can't use a variable before assigning a value to it. If you try to access a variable that hasn't been assigned, Python will raise a NameError. Always make sure to assign a value to your variable before you use it in calculations or print statements.

Title 1111111
expand arrow

You can't use a variable before assigning a value to it. If you try to access a variable that hasn't been assigned, Python will raise a NameError. Always make sure to assign a value to your variable before you use it in calculations or print statements.

Title 222222
expand arrow

You can't use a variable before assigning a value to it. If you try to access a

Title 333333
expand arrow

You can't use a variable before assigning a value to it. If you try to access a variable that hasn't been assigned, Python will raise a NameError. Always make sure to assign a value to your variable before you use it in calculations or print statements. You can't use a variable before assigning a value to it. If you try to access a variable that hasn't been assigned, Python will raise a NameError. Always make sure to assign a value to your variable before you use it in calculations or print statements. You can't use a variable before assigning a value to it. If you try to access a variable that hasn't been assigned, Python will raise a NameError. Always make sure to assign a value to your variable before you use it in calculations or print statements.

ID

Name

Surname

Age

jdnvjudfdfv

236

1

John

Dou

22

dfvdkfbs

kfjvbdhjvhfdbjkvnhvfdv

2

AAA

jjdhhhduvf fgd

445

jdsdvjndfjvkdfnvkjdfnkvd

dfvgb

Oppgave

Swipe to start coding

Complete and output the arithmetic operations below

  • Multiply the price of peanut butter (7.32) and the tax rate (0.2) to calculate the tax value. Use * operator
  • Divide price of eggs (8.30) and the number of eggs (20) to calculate the price of single egg. Use / operator

Løsning

12
while True: print("This runs forever")
copy
aaa.py

aaa.py

bbb.py

bbb.py

copy

dfnvnhfvfnvfjnjdkjfvnjdcjjj

hvgy
carousel-imgcarousel-imgcarousel-img
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 1
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt