3. Cut

1text = "Palms"
2print(text[2:5])
3print(text[0:3])
4print(text[4:6])
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 3.1 (cl_l33_3_en)

Activity: 3.2 ActiveCode (ac_l33_3a_en)

3.1. The CEO is happy!

3.2. There are no stupid questions

  • Can I put any website in this code?

  • Yes. Feel free, but don’t forget about decoding.

  • For example, the following website displays characters with iso8859 decoding.

  • What does urllib.request do?

  • It allows you to chat with the internet.

  • Can I access a page directly in the browser?

  • Yes, run the code below which uses import antigravity.

Activity: 3.2.1 ActiveCode (ac_l33_3b_en)

You have attempted 1 of 4 activities on this page