<< Chapter < Page Chapter >> Page >
This module contains review questions and answers keyed to the module titled Itse1359-1090-Lists Part 2.

Table of contents


This module is one in a collection of modules on Python designed for teaching ITSE 1359 Introduction to Scripting Languages: Python at Austin Community College in Austin, TX.

This module contains review questions and answers keyed to the module titled Itse1359-1090-Lists Part 2 .

Once you study that module, you should be able to answer the review questions in this module.

The questions and the answers in this module are connected by hyperlinks to make it easy for you to navigate from the question to the answer and back again.

(Note to blind and visually impaired students: with the exception of two bitmap images that are used solely as spacers to separate the question sectionfrom the answer section, all of the material in this module is presented in plain text format and should be accessible using an audio screen reader or abraille display.)


Question 1

Show how to replace a slice of a list with the elements from a new list.

Go to answer 1

Question 2

Show how to replace an element in a list with a nested list.

Go to answer 2

Question 3

Show how to extract the elements from one list that is nested in another list.

Go to answer 3

Question 4

Show how to create a list of nested lists where the nested lists have different lengths.

Go to answer 4

Image index

What is the meaning of the following two images?

These images were inserted here simply to insert some space between the questions and the answers to keep them from being visible on the screen at thesame time.

Spacer image of a rabbit and a penguin.

This image was also inserted for the purpose of inserting space between the questions and the answers.

Spacer image of a penguin and some houses.


Answer 4

A solution is shown in Image 4.

Image 4 . Answer 4.
listA = [[2,4],[8,16,32],[64,128,256,512]]

Go back to Question 4

Answer 3

A solution is shown in Image 3.

Image 3 . Answer 3.
listA = [100,200,300,400,500] listA[2]= [2,4,8,16,32,64] print(listA[2][0])print(listA[2][1]) print(listA[2][2])print(listA[2][3]) print(listA[2][4])print(listA[2][5])

Go back to Question 3

Answer 2

A solution is shown in Image 2.

Image 2 . Answer 2.
listA = [100,200,300,400,500] listA[2]= [2,4,8,16,32,64]

Go back to Question 2

Answer 1

A solution is shown in Image 1.

Image 1 . Answer 1.
listA = [100,200,300,400,500] listA[1:4]= [2,4,8,16,32,64]

Go back to Question 1


This section contains a variety of miscellaneous information.

Housekeeping material
  • Module name: Itse1359-1090r-Review
  • File: Itse1359-1090r.htm
  • Published: 10/15/14
  • Revised: 12/28/14

Financial : Although the Connexions site makes it possible for you to download aPDF file for this module at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, youshould be aware that some of the HTML elements in this module may not translate well into PDF.

I also want you to know that, I receive no financial compensation from the Connexions website even if you purchase the PDF version ofthe module.

In the past, unknown individuals have copied my modules from cnx.org, converted them to Kindle books, and placed them for sale onAmazon.com showing me as the author. I neither receive compensation for those sales nor do I know who does receive compensation. If youpurchase such a book, please be aware that it is a copy of a module that is freely available on cnx.org and that it was made andpublished without my prior knowledge.

Affiliation : I am a professor of Computer Information Technology at Austin Community College in Austin, TX.


Questions & Answers

Black market what is the meaning
Bless Reply
where there is illegal transactions of goods or services. where there illegal goods or services are sold.
Scarcity is the major problem of any economy which is the limited resources an economy has in order to produce its country's unlimited wants/needs. Therefore, scarcity is the key term beyond the study of Economics.
Bature Reply
what is supply
Rahul Reply
Like the demand, the supply demonstrates the quantities that will be  sold at a certain price. But unlike the demand, the supply relationship  shows an upward slope. This means that the higher the price, the higher the  quantity supplied.  Producers supply more at a higher
or we can say that By supply we mean various quantatirs of a commodity which a producer will offer for sale at different possible prices over a given period of time
What is scarcity?
Jubille Reply
having unlimited needs and wants in a world of limited resources
what are the indicator of over population
Accorobatic Reply
Inefficiency of natural resources
Low PCI .
resources are limited and wants are unlimited
limited resources
what product market?
Gayflor Reply
explain demand
Bless Reply
what is economics
Economics is the social science that studies the production, distribution and consumption of goods and services.Economics focuses on the behaviour and interactions of economic agents and how economies work.
Pls what is national income?
demand is the number of buyers. as the price of goods is increase, the buyers will not consider to buy the goods, so the demand will decreases
National Income is the aggregate monetary value of all final goods and services produced in an economy in an year .
Why pecularities of land has no economic significance, What the economic bad, effictive demand?
Demand is a quantity of goods that a consumer is willing to buy at different prices over a given period of time
Define law of demand
what is deadweightloss
francis Reply
deadweight loss is the allocative inefficiency.... when the equilibrium for good or services is not achived.
hii too
how are you all?
I am here been sick but here
may you get well soon Amanda
What are the implications of classical Economics?
What are the implications of classical Economics school of thought?
Dead weight loss is an inefficient allocation of resources, especially through taxation or restrictions.
Classical Economics had an influenced by ancient economic principle and theory.
hello please what is localization of industry
Bless Reply
price is tantalisingly the only factor determining demand which can be analyze the view
Sinit Reply
Price is tantalizingly the only factor determining demand which can be analyze the view
what is scarcity
Sharkdanny Reply
the state of being scarce or in short supply; shortage.
what is meant by an abnormal demand curve?
Samuel Reply
what is microeconomics
Berun Reply
micronomics can be define as that part of Economics that deals with small scale business. e.g. House hold stuff
Micro economics is the study of individuals, households and firms' behavior un decision making and allocation of resources
what is underemployment
Xornam Reply
It is the situation where the available resources are not used to it optimum
state the law of diminishing returns
Bless, the law of diminishing returns state that one point, adding a single worker will result in a decrease of production.
it is a situation where by people are employ but work under their potential
David please go into details kk
Akua pls when you say people alone? what about facilities?
Definition of underemployment. 1 : the condition in which people in a labor force are employed at less than full-time or regular jobs or at jobs inadequate with respect to their training or economic needs
OK that is good
I am new here
what does law of demand says?
with a diagram explain fairy elastic demand
comprehensive answer for public finance is the money that a government has available to spend from taxes and borrowing.
wilflay Reply
what then comprises of public opinion
what's the easiest and fastest way to the synthesize AgNP?
Damian Reply
types of nano material
abeetha Reply
I start with an easy one. carbon nanotubes woven into a long filament like a string
many many of nanotubes
what is the k.e before it land
what is the function of carbon nanotubes?
I'm interested in nanotube
what is nanomaterials​ and their applications of sensors.
Ramkumar Reply
what is nano technology
Sravani Reply
what is system testing?
preparation of nanomaterial
Victor Reply
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
Himanshu Reply
good afternoon madam
what is system testing
what is the application of nanotechnology?
In this morden time nanotechnology used in many field . 1-Electronics-manufacturad IC ,RAM,MRAM,solar panel etc 2-Helth and Medical-Nanomedicine,Drug Dilivery for cancer treatment etc 3- Atomobile -MEMS, Coating on car etc. and may other field for details you can check at Google
anybody can imagine what will be happen after 100 years from now in nano tech world
after 100 year this will be not nanotechnology maybe this technology name will be change . maybe aftet 100 year . we work on electron lable practically about its properties and behaviour by the different instruments
name doesn't matter , whatever it will be change... I'm taking about effect on circumstances of the microscopic world
how hard could it be to apply nanotechnology against viral infections such HIV or Ebola?
silver nanoparticles could handle the job?
not now but maybe in future only AgNP maybe any other nanomaterials
I'm interested in Nanotube
this technology will not going on for the long time , so I'm thinking about femtotechnology 10^-15
can nanotechnology change the direction of the face of the world
Prasenjit Reply
At high concentrations (>0.01 M), the relation between absorptivity coefficient and absorbance is no longer linear. This is due to the electrostatic interactions between the quantum dots in close proximity. If the concentration of the solution is high, another effect that is seen is the scattering of light from the large number of quantum dots. This assumption only works at low concentrations of the analyte. Presence of stray light.
Ali Reply
the Beer law works very well for dilute solutions but fails for very high concentrations. why?
bamidele Reply
Got questions? Join the online conversation and get instant answers!
QuizOver.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Itse 1359 introduction to scripting languages: python. OpenStax CNX. Jan 22, 2016 Download for free at https://legacy.cnx.org/content/col11713/1.32
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Itse 1359 introduction to scripting languages: python' conversation and receive update notifications?