Every function starts off with these three letters
What is def?
This index value will always return the first character in a string.
What is 0?
This function will output something to the window for the user to see.
What is the print function?
This loop will continue until the condition is no longer true.
What is a while loop?
Identify the letter printed from these lines of code:
words = "SG Rules!"
print(words[4])
What is 'u' ?
This function will take in input from the user.
What is the input function?
If you want to add more conditions to your if/else statement you'd use this keyword.
What is elif?
Identify the letter printed from these lines of code:
words = "SG Rules!"
print(words[:2])
What is 'SG' ?
This function is commonly used with for loops to indicate the number of times to loop.
What is the range function?
This loop will is used when you have a specific number of times you want to loop.
What is a for loop?
Identify the letter printed from these lines of code:
words = "SG Rules!"
print(words[3:])
What is 'Rules!' ?
If you need to check what data type a variable, you can use this function
What is the type function?
If you want to stop your loop after a condition is meet, you'd use this keyword.
What is the keyword break?
This index value will always return the last character in a string.
What is -1?
This function will return the number of characters in a string.
What is the len function?