Question: Hello! How should I do on python 3 to get the same output? by using while, please. should I use s.replace? Test print(fold_strings (aaa, BBB))

 Hello! How should I do on python 3 to get the

Hello!

How should I do on python 3 to get the same output? by using "while", please.

should I use "s.replace"?

Test print(fold_strings ("aaa", "BBB")) print(fold_strings ("giraffe", "wallaby")) gwiarlalfafbey print(fold_strings ("12345", "abcde")) Result aBaBaB 1a2b3c4d5e

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!