Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the code that a . combines the following 2 lists into a list named list 3 yourinitial list 1 = [ 4 0 ,

Write the code that
a. combines the following 2 lists into a list named list3yourinitial
list1=[40,50,60]
list2=[10,20,30]
b. prints list3yourinitial
c. then sorts list3 from low to high
d. prints the newly sorted list3yourinitial
for example if listM =['a','b','c'] it would print
['a','b','c']
e. prints list3yourinitial one element at a time with each element on a new line for example if listM =['a','b','c'] it would print
a
b
C
5. Tuple
a. Create a tuple with 4 elements of your choice of name and elements
b. prints your tuple
c. then sorts the tuple from low to high
d. prints the sorted tuple
for example if helo =('a','b','c') it would print
('a','b','c')
e. prints your tuple you created above one element at a time with each element on a new line for example if helo =('a','b','c') it would print
a
b
C
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 Tsukuba Japan April 2010 Proceedings Part 1 Lncs 5981

Authors: Hiroyuki Kitagawa ,Yoshiharu Ishikawa ,Wenjie Li ,Chiemi Watanabe

2010th Edition

3642120253, 978-3642120251

More Books

Students also viewed these Databases questions

Question

(2) The function f (x) = sin(x) is a probability density function.

Answered: 1 week ago

Question

What is footprinting?

Answered: 1 week ago