Questions & Fixing Some Mistakes
- What are binary numbers?
- What is ASCII?
-
What does alias mean in computer science?
Two or more variables refer to the same value in memory.
-
What is the difference between methods and functions in Python?
- Both are a set of instructions telling computers what they need to do.
- A function is NOT associated to anything, e.g.
print("こにちは")
. - A method is associated to another object, e.g.
" こにちは\n\r\n\r".strip()
.
- NOTE:
if
is NOT a function. It is an statement. -
What is an expression?
An expression is a combination of values, variables, operators, and calls to functions.
-
How to escape the last `\` (back slash) in a raw string in Python?
orprint(r"\\")
print(r"\ ")