One of the below programs that when called like this (with the underscore representing a digit from

Question:

One of the below programs that when called like this (with the underscore representing a digit from 1 to 4) generates this output:

>>> dup_("rubber duck")

’kcud rebburrubber duck’

Which one?

def dup1(source): target for letter in source: target = target+letter return target • def dup2 (source): target = for letter in source:

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: