Below, four example tweets are included in a variable called data. Each tweet uses the word 'ZOOM', which is the stock ticker for Zoom Video Communications, Inc. data = ['ZOOM earnings for Q1 are up 5%', 'Subscriptions at ZOOM have risen to all-time highs, boosting sales', "Got a new Mazda, ZOOM ZOOM Y'ALL!", 'I hate getting up at 8am FOR A STUPID ZOOM MEETING', 'ZOOM execs hint at a decline in earnings following a capital expansion program'] What is the correct syntax to set x equal to "Got a new Mazda, ZOOM ZOOM Y'ALL!" (A) x = data[0] (B) x = data[1] (C) x = data[2] (D) x = data[3] Only put the letter corresponding to your choice. For example, set the code below to read
PYTHON
Below, four example tweets are included in a variable called data. Each tweet uses the word 'ZOOM', which is the stock ticker for Zoom Video Communications, Inc.
data = ['ZOOM earnings for Q1 are up 5%', 'Subscriptions at ZOOM have risen to all-time highs, boosting sales', "Got a new Mazda, ZOOM ZOOM Y'ALL!", 'I hate getting up at 8am FOR A STUPID ZOOM MEETING', 'ZOOM execs hint at a decline in earnings following a capital expansion program']
What is the correct syntax to set x equal to "Got a new Mazda, ZOOM ZOOM Y'ALL!"
- (A) x = data[0]
- (B) x = data[1]
- (C) x = data[2]
- (D) x = data[3]
Only put the letter corresponding to your choice. For example, set the code below to read
List in python: list in python is a mutable data structure. It is represented using [] and is a heterogeneous type of data structure.
Step by step
Solved in 2 steps with 1 images