Funksjoner Flashcards

1
Q

Str(v)

A

Konverterer verdien v til en tekst

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

int(v)

A

Konverterer verdien v til et heltall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

float(v)

A

Konverterer verdien v til et desimaltall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

type(v)

A

Gir typen til verdien v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

//

A

Heltallsdivisjon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

%

A

Rest etter heltallsdivisjon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

**

A

Eksponering (opphøyet i)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

<=

A

Mindre eller lik

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

> =

A

Større eller lik

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

==

A

Er lik

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

!=

A

Er ulik

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Print()

A

Tom funksjon, skriver ut på skjerm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Max()

A

Resultatfunksjon, returnerer høyest verdi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Min()

A

Resultatfunksjon, returnerer laveste verdi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Round(Tall)

A

Runder av til heltall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Round(Tall1,Tall2)

A

Runder av Tall1 med Tall2 desimaler

17
Q

Len(tekst)

A

Returnerer lengden til teksten

18
Q

Input(Ledetekst)

A

Tar imot en verdi fra tastaturet, resultatfunksjon med bieffekt

19
Q

while

A

blokken repeteres så lenge betingelsen er oppfylt (True)

20
Q
A