One more #question_by_another_user
#Q: "What is the d/nce b/n Machine learning and Data science ...?"
#Q: "What is the d/nce b/n Machine learning and Data science ...?"
#CODE_CHALLENGE_3 #LIST #SWAP_TWO_NUMBERS
#Q: The next iteration of Asibeh Tenager will feature an extra-infuriating new item, the Purple Shell. When used, it warps the last place racer into first place and the first place racer into last place. Write a python function purple_shell and implement the Purple Shell's effect.
Note: Given a list of racers, set the first place racer (at the front of the list) to last
place and vice versa.
N.B: use swap mechanism
given list: racers = ["Asibeh", "Naol", "Obang"]
output list = ["Obang", "Naol", "Asibeh"]
Post your solution at @pythonethbot
#Q: The next iteration of Asibeh Tenager will feature an extra-infuriating new item, the Purple Shell. When used, it warps the last place racer into first place and the first place racer into last place. Write a python function purple_shell and implement the Purple Shell's effect.
Note: Given a list of racers, set the first place racer (at the front of the list) to last
place and vice versa.
N.B: use swap mechanism
given list: racers = ["Asibeh", "Naol", "Obang"]
output list = ["Obang", "Naol", "Asibeh"]
Post your solution at @pythonethbot