Predict the outputElementary20 XPExercise 16/16

String slices

Task

Without running the program, write exactly what it prints.

s = "informatika"
print(s[0:4])
print(s[-4:])
print(s[::2])
print(s.upper().count("A"))

Your answer

Put each printed line on its own line.

Hints

Try it yourself first. Each hint reveals a little more - and lowers the reward a little.

Signed out, hints are free - but no XP is awarded either.

Solution

The solution unlocks after the last hint.