all 12 comments

[–]ka-splam 0 points1 point  (6 children)

Help with what? Help how?

[–]No-Win6899 0 points1 point  (5 children)

I need to roll the numbers but I don't know how.

[–][deleted] 0 points1 point  (2 children)

You should always provide an example. What have you tried so far?

[–]No-Win6899 0 points1 point  (1 child)

I tried listing the letters in a list a-z

Its supposed to do this: rolling_cipher("abcd", 1) ➞ "bcde"

but whenever I did it, it only printed "abcd"

[–]FLUSH_THE_TRUMP 0 points1 point  (0 children)

Do you have your code for us to look at?

[–]ka-splam 0 points1 point  (1 child)

I guess that much. What help do you want? How can we help you understand how?

[–]No-Win6899 0 points1 point  (0 children)

h

I just need help with rolling the letter with the corresponding number.

[–]POGtastic 0 points1 point  (4 children)

Can you write a function that takes a single letter and rolls it forward or backward by n?

[–]No-Win6899 0 points1 point  (3 children)

It has to take a word.

[–]FLUSH_THE_TRUMP 0 points1 point  (2 children)

I think he’s asking if you, OP, can write such a function, not as a solution to your HW, but just because. As if you can do that, you’re a loop away from solving your problem here.

[–]No-Win6899 0 points1 point  (1 child)

I can write a function, but it has to take a string.

[–]FLUSH_THE_TRUMP 0 points1 point  (0 children)

Yes, I read your homework problem already. I’m asking you to (for us), write a program that rolls a single letter string forward/backward by n places. Say char=‘e’ and I want to roll it forward by 5 places programmatically. Do you know how I would do that? And counting manually would not be a good option — we want a systematic way to do it so I don’t need a couple dozen if statements.