Pseudocode Flashcards
1
Q
To make a comment
A
//bla bla
2
Q
Putting an input into a variable
A
name=input(“What’s your name”)
3
Q
Manipulating string, taking middle characters from a word
A
MID(X,X)
4
Q
MOD
A
Gives remained when you have divided
5
Q
DIV
A
Give the factor when divided
6
Q
Round to two decimal places
A
round(answer,2)
7
Q
2^5 in pseudocode
A
2**5
8
Q
convert string to integer
A
Int(“”)
9
Q
convert integer/float to string
A
Str()
10
Q
covert string to float
A
float(“”)
11
Q
bigger or equal too
A
> =
12
Q
assigning a variable equals
A
=
13
Q
comparative equal
A
==
14
Q
is not equal
A
!=
15
Q
While loop
A
while answer!=”computer”
answer=input(“What is the password?”)
Endwhile