1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Introduction to Julia

Connected

Bài tập

Slicing arrays

Slicing is a key skill you will need to work with arrays. You will often use slicing to select specific parts of the datasets you are working with. The elements of data you exclude can be as important as those you include.

In this exercise, you will be slicing sections out of the following array, which is available in your environment:

x = ['a', 'b', 'c', 'd', 'e', 'f', 'g']

Hướng dẫn 1/3

undefined XP
    1
    2
    3

Câu hỏi

  • Which of the following commands will slice out the array ['b', 'c','d']?

Các phương án trả lời