PCEP Flashcards
What does a compiler do?
Transfer code from one type to the other
What does a interpreter do?
Makes sure it is executed inmediately
What are keywords
Keywords are reserved words that can’t be used as a variable
How is code evaluated
Line-by-line
What does REPL stand for
Read, Evaluate, Print, Loop
What is the sign for a comment
#
Can you create block comments
no
With what operator can you check if a nymber divides evenly
%
What is the escape character
\
What is the newline character?
n
What is the result of the input function
a string
How can we avoid printing a newline when using the print function?
By setting end=’’ when calling the function.
Are lists immutable or mutable
mutable
Does list type have set method
no
How can you change a list
names.insert(place of characters, ‘name’) names[number] = ‘name’