
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
need help with python...paste indented code plzz

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 2 images

Knowledge Booster
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
- Python Help Write (1) the pseudo code, (2) the code, of the following problems: An online bank wants you to create a program that shows prospective customers how their deposits will grow. Your program should read the initial balance and the annual interest rate. Print out the balance after the first three years.arrow_forwardThis is from the book starting out with python >>> fourth edition by Tony Gladdis. I sent this one but it was the wrong solution, this problem I am having is a programming one, not Java. I just want to be more concise with my wording, and thank you for helping me.arrow_forwarddesign a program using pseudocode and then complete the program in Python using strings. Lab asks you to write a Mortgage Loan Calculator. Each lab asks you to write a pseudocode that plans the program’s logic before you write the program in Python and to turn in three things: 1) the pseudocode, 2) a screenshot of the output, and 3) the Python program.arrow_forward
- write python program ?Every Sunday through Thursday you go to class. When it is raining you take an umbrellaBut on the weekend (Friday, Saturday), what you do depends on the weatherIf it is raining you read in bed Otherwise, you have fun outdoorsarrow_forwardExists a compilation of Python best practises anywhere?arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

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)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education