Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Contents | Section
Test UI Course VN
Avsnitt 1. Kapitel 1
single

single

bookContents

Svep för att visa menyn

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

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 1
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

some-alt