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...





need help with python...paste indented code plzz






7a. Implement the following:<br>a) Use a for loop to create a list with 26 letters (a-z).<br>b) Use a for loop to create a list with 26 numbers from 1 to 26 inclusive.<br>c) Create a dictionary, charNum by zipping above two lists.<br>d) Use a for loop to print the keys and values in the dictionary as the output below.<br>Example Output:<br>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|<br>7b. Implement the following:<br>a) Use a for loop to create a list with 26 letters (A-Z).<br>b) Use a for loop to create a list with 26 numbers from 100 to 2600 (with step value of 100) inclusive.<br>c) Create a dictionary, numChar by zipping above two lists.<br>d) Use a for loop to print the keys and values in the dictionary as the output below.<br>e) Merge the dictionary, charNum created in 7a with the dictionary, numChar into one dictionary, all.<br>f) Print out the dictionary, all as the output below.<br>Example Output:<br>100 A| 200 B|30e c[400 D|500 E|600 F|700 G||<br>12100 u|2200 v|2300 w|2400 X|2500 Y|2600 z||<br>{'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5, 'f': 6, 'g': 7, 'h': 8, 'i': 9, 'j': 10, 'k': 11,<br>1800: 'R', 1900: 's', 2000: 'T', 2100: 'U', 2200: 'V', 2300: 'W', 2400: 'X', 2500: 'Y', 2600: 'z'}<br>

Extracted 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'}

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here