Junior — Senior
How will the list change after applying the extend and append methods
livecode
Task condition
Determine what output will be displayed on the screen after executing the given program. Answer options:
- ['beegeek', 'y', 'e', 's', 'n', 'o']
- ['beegeek', 'yes', 'no']
- ['beegeek', 'y', 'e', 's', 'no']
- ['beegeek', 'yes', 'n', 'o']
- an error will occur
data = ['beegeek']
data.extend('yes')
data.append('no')
print(data)