Question 1 Description In the ‘Get Schwifty’ episode of Rick and Morty, a massive alien appears over the Earth interferi
Posted: Sat May 14, 2022 4:11 pm
Question 1
Description
In the ‘Get Schwifty’ episode of Rick and Morty, a massive alien
appears over the Earth interfering with its gravity, resulting
in several disasters on the planet. When the alien exclaims, “Show
me what you got”, Rick conveys to the President of the US that the
alien seeks a live performance of a catchy new song. Unfortunately,
all of Earth’s musicians died when a disaster struck except you.
Now, you have written a really catchy song that can save the Earth.
You want to send the song to Rick, so that he can sing it. However,
the ongoing disasters have drastically weakened various
communication channels. You must also write a Python code and use
md5 to ensure that the song that you sent to Rick does not get
corrupted. Complete the following code:
import hashlib #library to use pre-written hash function
def send(message):
print(message)
song = input()
#TODO
send(song)
send(hashed_song.hexdigest())
Description
In the ‘Get Schwifty’ episode of Rick and Morty, a massive alien
appears over the Earth interfering with its gravity, resulting
in several disasters on the planet. When the alien exclaims, “Show
me what you got”, Rick conveys to the President of the US that the
alien seeks a live performance of a catchy new song. Unfortunately,
all of Earth’s musicians died when a disaster struck except you.
Now, you have written a really catchy song that can save the Earth.
You want to send the song to Rick, so that he can sing it. However,
the ongoing disasters have drastically weakened various
communication channels. You must also write a Python code and use
md5 to ensure that the song that you sent to Rick does not get
corrupted. Complete the following code:
import hashlib #library to use pre-written hash function
def send(message):
print(message)
song = input()
#TODO
send(song)
send(hashed_song.hexdigest())