Hangman 7 – How to process textual data?

0%

What is indexing?

Correct! Wrong!

What does the len('hello') function output?

Correct! Wrong!

What is the result of the code snippet: 'hello'[3]?

Correct! Wrong!

What does it mean if you start a line with the hashtag symbol '#'?

Correct! Wrong!

What is slicing?

Correct! Wrong!

What is the result of the code snippet: 'hello'[1:3]?

Correct! Wrong!

What happens if we leave away the end index in slicing: x[3:]?

Correct! Wrong!

What is the result of this code snippet using the variable x='hello'? print(x[:3] + x[3:])

Correct! Wrong!

Leave a comment