7a. Implement the following: a) Use a for loop to create a list with 26 letters (a-z). b) Use a for loop to create a list with 26 numbers from 1 to 26 inclusive. c) Create a dictionary, charNum by zipping above two lists. d) Use a for loop to print the keys and values in the dictionary as the output below. Example Output: a 1|b 2|c 3|d 4|e 5|f 6|g 7|h 8|i 9|j 10|k 11|1 12|m 13|n 14|o 15|p 16|q 17|r 18|5 19|t 20|u 21|v 22|w 23|x 24|y 25|z 26||

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

need help with python...paste indented code plzz

 

7a. Implement the following:
a) Use a for loop to create a list with 26 letters (a-z).
b) Use a for loop to create a list with 26 numbers from 1 to 26 inclusive.
c) Create a dictionary, charNum by zipping above two lists.
d) Use a for loop to print the keys and values in the dictionary as the output below.
Example Output:
a 1|b 2|c 3|d 4|e 5|f 6|g 7|h 8|i 9|j 10|k 11|1 12|m 13|n 14|o 15|p 16|q 17|r 18|s 19|t 20|u 21|v 22|w 23|x 24|y 25|z 26|
7b. Implement the following:
a) Use a for loop to create a list with 26 letters (A-Z).
b) Use a for loop to create a list with 26 numbers from 100 to 2600 (with step value of 100) inclusive.
c) Create a dictionary, numChar by zipping above two lists.
d) Use a for loop to print the keys and values in the dictionary as the output below.
e) Merge the dictionary, charNum created in 7a with the dictionary, numChar into one dictionary, all.
f) Print out the dictionary, all as the output below.
Example Output:
100 A| 200 B|30e c[400 D|500 E|600 F|700 G||
12100 u|2200 v|2300 w|2400 X|2500 Y|2600 z||
{'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9, 'j': 10, 'k': 11,
1800: 'R', 1900: 's', 2000: 'T', 2100: 'U', 2200: 'V', 2300: 'W', 2400: 'X', 2500: 'Y', 2600: 'z'}
Transcribed Image Text:7a. Implement the following: a) Use a for loop to create a list with 26 letters (a-z). b) Use a for loop to create a list with 26 numbers from 1 to 26 inclusive. c) Create a dictionary, charNum by zipping above two lists. d) Use a for loop to print the keys and values in the dictionary as the output below. Example Output: a 1|b 2|c 3|d 4|e 5|f 6|g 7|h 8|i 9|j 10|k 11|1 12|m 13|n 14|o 15|p 16|q 17|r 18|s 19|t 20|u 21|v 22|w 23|x 24|y 25|z 26| 7b. Implement the following: a) Use a for loop to create a list with 26 letters (A-Z). b) Use a for loop to create a list with 26 numbers from 100 to 2600 (with step value of 100) inclusive. c) Create a dictionary, numChar by zipping above two lists. d) Use a for loop to print the keys and values in the dictionary as the output below. e) Merge the dictionary, charNum created in 7a with the dictionary, numChar into one dictionary, all. f) Print out the dictionary, all as the output below. Example Output: 100 A| 200 B|30e c[400 D|500 E|600 F|700 G|| 12100 u|2200 v|2300 w|2400 X|2500 Y|2600 z|| {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9, 'j': 10, 'k': 11, 1800: 'R', 1900: 's', 2000: 'T', 2100: 'U', 2200: 'V', 2300: 'W', 2400: 'X', 2500: 'Y', 2600: 'z'}
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Linked List Representation
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