Question

Put the following lines into a glowscript script and run them: my list [cat, arrow,1, unicorn, 3.14159] print (my list [1]) my list.append (monkey) print (Len (my list)) You may want to edit this code to answer the following questions. a.) What is my list[0]? unicorn Make sure not to have the in the answer. Submit Answer Incorrect. Tries 6/99 Previous Tries (b.) How may items are in my_list at the end of the program? 6 You are correct. Your receipt no. is 150-1992 Prvi (C) How many items are in my-list initially (after the first line of code? 5 You are correct. Previous Tries Your receipt no. is 150-3538 Post Discussion
Need help with first question
0 0
Add a comment Improve this question Transcribed image text
Answer #1

my_list[0] element is the very first element in the list, which is "cat". I think you had already tried it, but you are including the double quotes in your answers. Try input cat without the quotes that is : cat

And not : "cat"

Add a comment
Know the answer?
Add Answer to:
Need help with first question Put the following lines into a glowscript script and run them:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Put the following lines into a glowscript script and run them: theta1.1304 particle poaition -vector(1.0,1.0,0) obslocation...

    Put the following lines into a glowscript script and run them: theta1.1304 particle poaition -vector(1.0,1.0,0) obslocation vector(coa(theta), ain(theta), 0) r obalocation-particle position rhat-r/rmag Check all of the variables that are vectors: theta rhat particle_ position rmag obslocation Submit Answer Incorrect. Tries 4/12 Previous Tries C.) What is the length of the vector r? Submit Answer Tries 0/12 a.) what is the length of the vector rhat?

  • i still need help on the last question. i tried equations but i keep getting it...

    i still need help on the last question. i tried equations but i keep getting it wrong. thank you i believe it's moles over volume and the answer should be a percentage Print Info The chemical method of analysis in determination of the blood alcohol content (%BAC) is: K2Cr207 + H2SO4 + C2H5OH Cr2(SO4)3 + K2SO4 + CH3COOH + H20 What are the stoichiometric coefficients for the reaction above? (please enter the coefficients without spaces and with a coma between...

  • Question 1a - Increasing Numbers in List - First Occurence(3 points) Write a function numIncreasing1(L) that...

    Question 1a - Increasing Numbers in List - First Occurence(3 points) Write a function numIncreasing1(L) that takes as input a list of numbers and returns a list of the first sequence within that is increasing order, and has a length of at least 2. If no increasing sequential numbers are found, (ie. the input list is in descending order) then naturally a list of just the first value is returned. Increasing sequence means for a number to be valid it...

  • Use the link in the Jupyter Notebook activity to access your Python script. Once you have...

    Use the link in the Jupyter Notebook activity to access your Python script. Once you have made your calculations, complete this discussion. The script will output answers to the questions given below. You must attach your Python script output as an HTML file and respond to the questions below. In this discussion, you will apply the statistical concepts and techniques covered in this week's reading about hypothesis testing for the difference between two population proportions. In the previous week’s discussion,...

  • I need help with part B of this equation please!!! Books and Brew (BB) is a...

    I need help with part B of this equation please!!! Books and Brew (BB) is a large city bookstore that sells books and music CDs, and also has a cafe. Currently, BB uses a single driver system to allocate its operating costs to each of its three product lines, using the number of items sold as the single cost driver. But BB's management is concerned that this allocation system may not be providing the best information for making a variety...

  • Hey guys I need help with this question with 3 sub-problems. f test remove short synonyms () Define the remove shorti s...

    Hey guys I need help with this question with 3 sub-problems. f test remove short synonyms () Define the remove shorti synonyms function which is passed a dictionary as a parameter- The keys of the parameter dictionary are words and the corresponding values are 1ists of synonyms (synonyms are words which have the same or nearly the same meaning). The function romoves all the eynonyme which have ous than 8 charactors from each corresponding list of synonyms-As well, the funet...

  • I need help in Python. This is a two step problem So I have the code...

    I need help in Python. This is a two step problem So I have the code down, but I am missing some requirements that I am stuck on. Also, I need help verifying the problem is correct.:) 7. Random Number File Writer Write a program that writes a series of random numbers to a file. Each random number should be in the range of 1 through 500. The application should let the user specify how many random numbers the file...

  • Hey guys I need help with this assignment. However it contains 7 sub-problems to solve but I figured only 4 of them can...

    Hey guys I need help with this assignment. However it contains 7 sub-problems to solve but I figured only 4 of them can be solved in one post so I posted the other on another question so please check them out as well :) Here is the questions in this assignment: Note: Two helper functions Some of the testing codes for the functions in this assignment makes use of the print_dict in_key_order (a dict) function which prints dictionary keyvalue pairs...

  • You need not run Python programs on a computer in solving the following problems. Place your...

    You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...

  • I need help to solve this. A5CompanyA.txt A5CompanyB.txt continues this are tables 13.3 and 13.4 Question...

    I need help to solve this. A5CompanyA.txt A5CompanyB.txt continues this are tables 13.3 and 13.4 Question 1: Graphs This question is similar to the question seen in Exercise 5. It is recommended that you complete Exercise 5 prior to attempting this question. For each of the two graphs given below, complete the following four items. No code is required for this question. 1. Draw the graph corresponding to the given adjaceney matrix (graph 1) or adjacency list (graph 2). 2....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT