跳到主要内容

Night 6: Your pet's favourite snacks

← 30 Code Nights · Language: Python Pseudocode (AS 9618)
English

Tonight: an array of snacks

  • Your pet likes many snacks. One variable for each? Too many!
  • You will learn one thing: arrays.

Words for tonight

Word Meaning
array many values of the same type in one variable, in order
element one value in an array
index the number of a place in the array; here it starts at 1

讲义

登录或创建账户

IGCSE, A-Level & AP