These punctuation marks are used to signify a string.
What are quotation marks?
The way you use indexing to get the first letter of "MyString"
What is "MyString"[0]?
A base 2 counting system
What is the binary counting system?
The answer to 54%5
What is 4?
What we use to repeat code over and over again.
What is a while statement?
The data type of "213432401238471209341"
What is a string?
The way you use slicing to get "My" from "MyString".
What is "MyString"[0:2]?
A base 10 counting system
What is the decimal counting system?
This is a different way to write
n = n + 1
What is n += 1?
What we specifically use to let a program continue when there's an error.
What is a Try Except Statement?
This is the output of: print("Tha\nksgiving")
Tha
ksgiving
(A new line should have been printed)
The way you use slicing to get "String" from "MyString".
What is "MyString"[2:]?
A base 16 counting system
What is the hexadecimal counting system?
This is the number of bytes in a kilobyte.
(The number mentioned in class)
What is 1024 bytes?
What we specifically use to make a program take multiple possible paths in a code.
What is an If-Elif-Else Statement?
These special characters are produced using backslashes insides strings.
What are escape sequences?
The way you use striding to read "MyString" backwards.
"MyString"[::-1]
The decimal equivalent of 100(binary).
4
The output of print(7%(5 // 2))
What is 1?
A way to get out of a while loop WITHOUT falsifying the Boolean condition.
What is the break command?
This is the type of error you get when you try to combine a string and an integer.
TypeError
The way you use string slicing to get "MS" from "MyString"
What is print("MyString"[:3:2])?
or
What is print("MyString"[:4:2])?
The hexadecimal equivalent of 255(decimal)
FF
An if statement inside another if statement
What is a nested-if statement?