Keywords in Python
String Properties
Built-in Functions
200

Every function starts off with these three letters

What is def?

200

This index value will always return the first character in a string.

What is 0?

200

This function will output something to the window for the user to see.

What is the print function?

400

This loop will continue until the condition is no longer true.

What is a while loop?

400

Identify the letter printed from these lines of code: 

words = "SG Rules!" 

print(words[4])

What is 'u' ?

400

This function will take in input from the user.

What is the input function? 

600

If you want to add more conditions to your if/else statement you'd use this keyword. 

What is elif?

600

Identify the letter printed from these lines of code: 

words = "SG Rules!" 

print(words[:2])

What is 'SG' ?

600

This function is commonly used with for loops to indicate the number of times to loop.

What is the range function?

800

This loop will is used when you have a specific number of times you want to loop.

What is a for loop?

800

Identify the letter printed from these lines of code: 

words = "SG Rules!" 

print(words[3:])

What is 'Rules!' ?

800

If you need to check what data type a variable, you can use this function

What is the type function?

1000

If you want to stop your loop after a condition is meet, you'd use this keyword. 

What is the keyword break?

1000

This index value will always return the last character in a string.

What is -1?

1000

This function will return the number of characters in a string.

What is the len function?

M
e
n
u