Your answer your looking for is letting D because you don’t know it or it don’t have anything to do with you...
Answer:
What’s up, I’m currently in this class, and I was wondering if it’s easy or hard?
Explanation:
Answer:
import random
Explanation:
if it's python try import random
Answer:
The function in Python is as follows:
def rotateRight(strng, d):
lent = len(strng)
retString = strng[lent - d : ] + strng[0 : lent - d]
return retString
Explanation:
This defines the function
def rotateRight(strng, d):
This calculates the length of the string
lent = len(strng)
This calculates the return string
retString = strng[lent - d : ] + strng[0 : lent - d]
This returns the return string
return retString
Addition:
The return string is calculated as thus:
This string is split from the <em>index passed to the function to the last element of the string, i.e. from dth to last.</em>
<em>The split string is then concatenated to the beginning of the remaining string</em>