This is a string.
Look at this code. Predict what will be printed and write down your prediction.
a = newString[0]
b = newString[-1]
c = newString[-5:]
d = newString[:-5]
e = newString[10:16]
print(f"{a} : {b} : {c} : {d} : {e})
Now, put the code into your IDE and see if you are correct.
An array of STRINGS stores 6 words.
The computer program counts how many of the words end in the letter s
Write this program.
A game allows a user to guess which color the computer is thinking of. The user has only 3 chances to guess correctly.
Type this code and test it in your IDE. It has no syntax errors so it should run when you have finished.
Run the code a few times and see if it works.
To help you complete the following tasks, type print(compColor) after compColor is assigned randomly.