COMP9001 Week 6 每周题库 · Data Structures & Strings 数据结构与字符串
Week 6 精选练习:列表、切片、字典、元组、集合与字符串方法。Curated practice on lists, slicing, dictionaries, tuples, sets and string methods.
0题目
0已练习
0%你的正确率
~0 分钟预计时间
W06 Lists 列表
What is the value of xs after the following is evaluated?xs = 'hello' ys = xs[:] ys = ys.upper()
W06 Slicing 切片
What is the value of x after the following code is run?s = 'Hello World' x = s[1:8:2]
W06 Lists 列表
What is the value of result after the following code is run?s = 'one two three' result = '-'.join(s.split())
W06 Lists 列表
What is the value of x after the following code is run?s = 'apple,banana,cherry' x = s.split(',')[1].upper()
W06 Slicing 切片
What is the value of x after the following code is run?s = 'Programming' x = s[-4:][::-1]
你的进度
0%0 / 40
已练 0 / 40 · 正确率 0%