QUESTION 1 1 points Save Answer Consider a non-empty Python list variable called
ID: 3591179 • Letter: Q
Question
QUESTION 1 1 points Save Answer Consider a non-empty Python list variable called words which contains strings. Below is incomplete code which is intended to print the longest string in the list words. The code is supposed to work by scanning across the list, using the variable best to keep track of the longest word seen so far Two ways to do this are: (1) remember the word using the variable best; or (2) remember the word's position in the list using the variable best. Each box contains a number of labelled lines of code which would be used for the implementations above. They are not in any particular order YOUR TASK is to first make a choice about which implementation you will use (it does not matter which). Then determine which combination of lines of code will cause the code to print the longest string in the list words Either: (a) 0 (b) words [0] best = or: for index in range (len (words)): Either: (a) (b) len (words [best]) len (best) if len (words[index]) > or: Either: (a) words[index] (b) index best = or: Either: (a) words [best] (b) best print ( or: Choose one of the combinations belowExplanation / Answer
ques 2
correct option is option 2
since in the query we are fetching the data from 3 tables studentdetails, unitdetails and reuslts and some of the columns are fetched from the tables columns that are fetched unitcode, unitname, year semester, reuslts for the student John Brown
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.