Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please i need this quickly Q3 Changing List Elements 4 Points def add_exlamation (words): exciting_words = [1] for word in words: exciting_words, append(word +1 )

please i need this quickly
image text in transcribed
Q3 Changing List Elements 4 Points def add_exlamation (words): exciting_words = [1] for word in words: exciting_words, append(word +1 ) return exciting_words def add_exlamation2 (words): for idx in range(1en(words)): return words The add_exclamation function above takes in a list of words, and returns a new list which contains the same words as the original, except that a '!' has been concatenated onto the end of each one. Fill in the blank in the add_exlamation2 function below it, such that add_exclamation2 does the same thing as add_exclamation, except that it changes the original list rather than creating a new one. Q4 Common List Errors 10 Points The following code is supposed to have the user input 5 integers, and then print out the sum of all

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions