3. a. Write a for loop that prints the ASCII code of each character in a string named S. Usethe built-in function ord(ch

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

3. a. Write a for loop that prints the ASCII code of each character in a string named S. Usethe built-in function ord(ch

Post by answerhappygod »

3 A Write A For Loop That Prints The Ascii Code Of Each Character In A String Named S Usethe Built In Function Ord Ch 1
3 A Write A For Loop That Prints The Ascii Code Of Each Character In A String Named S Usethe Built In Function Ord Ch 1 (46.58 KiB) Viewed 8 times
please help me solve this python exercise ASAP 🙏
3. a. Write a for loop that prints the ASCII code of each character in a string named S. Usethe built-in function ord(character) to convert each character to an ASCII integer. b. Next, change your loop to compute the sum of the ASCII codes of all characters in a string 4. Use a for loop and the list append method to generate the powers of 2 to produce the following result [1, 2, 4, 8, 16, 32, 64, 128] 5. Write a for loop that prints a dictionary's items in sorted (ascending) order.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply