Answer the 7 to 10 task

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

 

Answer the 7 to 10 task

 

Create a list with 5 items having 3 distinct data types:

-output the second element of the list

-output the last element of the list using

-negative index

-positive index

-len method

 

Task 2

-Create a list with 3 items

-add an item to the end of the list

-remove the first item of the list

-determine if an item exists in the list

-if it does, display its index

-if it does not, give user message

 

Task 3

-Create a list of doubles (the data type double, minimum 3 values)

-output the minimum value

-output the maximum value

 

Task 4

-Create an empty list

-Ask the user for any input 5 times

-Only add the input to the list if it does NOT already existTask 5

-Ask the user for input 3 times

-Convert the inputs into a tuple

-Output the tuple

 

Task 6

 

Ask the user for 3 inputs

    starting number

    ending number

    increment number

 

using for loop

    output each number from 0 to starting number

    output each number from 1 to starting number

    output each number from starting number to ending number

    output each number from starting number to ending number increasing by incremental number

 

 

Task 7

 

Using while loop, complete the four FOR loops above

Task 8

 

Continually ask the user for a number until they have inputted a value between the range of 50-75

Escape the loop and display a congrats message

 

 

Task 9

 

Count up from 1-20 by ones

Skip the numbers 6 and 13

 

 

Task 10

 

Count down from 60 to 12 by 3s

Skip the odd numbers

 

Expert Solution
steps

Step by step

Solved in 6 steps

Blurred answer
Knowledge Booster
Continuity plans
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education