Answer to Question #237618 in Python for likith

Question #237618
Easy way is an online exam for new graduates of any discipline to find entry level jobs in their fields. the website generates the roll number of its registered students with the help of the students application number. the process includes a key K for generating an individual roll number. to generate the roll number , each digit in the application number is replaced by the kth digit that comes after it in the application number. the series of digits is considered in a cyclic fashion for the last k digits
1
Expert's answer
2021-09-15T07:54:20-0400
n = input('application number: ')
k = int(input('key: '))
new_n = ''
for i in range(len(n)):
	new_n += n[(i+k)%len(n)]
print(f'generated number: {new_n}')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

LIKITH
15.09.21, 16:26

THANK YOU SO MUCH!!!!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS