1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
marshall27 [118]
2 years ago
5

3.8 LAB: Read values into a list

Computers and Technology
1 answer:
Salsk061 [2.6K]2 years ago
8 0

An example of Read values into a list is:

#!/usr/bin/python

list1 = ['math', 'chemistry', 1995, 2001];

list2 = [1, 2, 3, 4, 5, 6, 7 ];

print "list1[0]: ", list1[0]

print "list2[1:5]: ", list2[1:5]

<h3>What is Python Lists?</h3>

This is known to be a list that is seen as the a most versatile in terms of datatype that are known to be available in Python.

It is one that can be written as a list of comma-separated values that is found in between square brackets.

Note that the most Important thing about a list is that all the items in a list are ones that do not require to be of the same type.

Hence Creating a list is very simple to do and it is done by putting a lot of comma-separated values in between square brackets.

Therefore, An example of Read values into a list is:

#!/usr/bin/python

list1 = ['math', 'chemistry', 1995, 2001];

list2 = [1, 2, 3, 4, 5, 6, 7 ];

print "list1[0]: ", list1[0]

print "list2[1:5]: ", list2[1:5]

Learn more about python list  from

brainly.com/question/24232863

#SPJ1

You might be interested in
7. Which of these statements is true? Agile is a programming language MySQL is a database HTML stands for "Hypertext Markup Link
timurjin [86]

Answer:

None of them is correct, but it seems one of the option has missing words.

The exact definition is, MySQL is a database management system.

Explanation:

Agile is not a programming language, it is a software development methodology.

HTML stands for "Hypertext Markup Language"

Java and JavaScript are different languages.

Actually,  MySQL is a database management system. It is used to deal with the relational databases. It uses SQL (Structured Query Language).

5 0
4 years ago
Files containing ____ are available from a variety of sources.
leonid [27]
Hello <span>Charlesreid9517 
</span><span>

Answer: Files containing graphics are available from a variety of sources


Hope This Helps
-Chris</span>
4 0
3 years ago
Read 2 more answers
Write a function named remove_duplicates that takes a list (of numeric and/or string values) and returns a new list with only th
Lorico [155]

Answer:

def remove_duplicates(lst):

   no_duplicate = []

   dup = []

   for x in lst:

       if x not in no_duplicate:

           no_duplicate.append(x)

       else:

           dup.append(x)

   for y in dup:

       if y in no_duplicate:

           no_duplicate.remove(y)

   return no_duplicate

Explanation:

Create a function called remove_duplicates that takes one parameter, lst

Create two lists one for no duplicate elements and one for duplicate elements

Create for loop that iterates through the lst. If an element is reached for first time, put it to the no_duplicate. If it is reached more than once, put it to the dup.

When the first loop is done, create another for loop that iterates through the dup. If one element in no_duplicate is in the dup, that means it is a duplicate, remove that element from the no_duplicate.

When the second loop is done, return the no_duplicate

6 0
3 years ago
list the six external parts of a computer system, identify which is the output device and which is the input device?
Mariulka [41]
1.mouse input
2.keyboard input
3.monitor output
4.speakers output
5.printer output , and input if has scanner
5.microphone input
4 0
3 years ago
Read 2 more answers
The ratio of men to women in a certain factory is 3 to 4 .There are 210 men.how many workers are there?
WARRIOR [948]

140, that's not a guess

5 0
3 years ago
Other questions:
  • Natalie enjoys talking to people and helping them with their problems. Her friends always tell her that she’s a good listener. B
    15·2 answers
  • A four-year old laptop will not boot and presents error messages on screen. you have verified with the laptop technical support
    9·1 answer
  • Write a recursive method, numToString, that takes two arguments: num, the number to convert, and base, the base to represent the
    8·1 answer
  • With the exception of a(n) ____________________, the Paste command allows you to paste an object without creating a link.
    11·1 answer
  • 6. How can you encrypt an entire drive, including files and folders belonging to other users? a. EFS b. User Account Control c.
    11·1 answer
  • What is responsible for making an axle spin in an electric motor? an outside power source attached to a magnet an outside power
    6·2 answers
  • How do I fix this on my HiSense Roku tv this is on Xfinity Stream Beta the error number is -500
    8·2 answers
  • When can designers use rapid application development?
    8·1 answer
  • Tamika has received an average of 97% on all of her math tests, has done well on her homework assignments, and participates in c
    9·2 answers
  • Thabo has a small barber shop and he uses Microsoft applications to keep track of his stock and to create posters for advertisin
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!