149k views
1 vote
What would the code be for this?

What would the code be for this?-example-1
User Snumpy
by
3.3k points

1 Answer

4 votes

Answer:

c = 'z'

while c >= 'a':

print(c)

c = c h r(ord(c)-5)

Step-by-step explanation:

Keep in mind, you could have also chosen to do:

print("z\\u\\p\\k\\f\\a\\")

but it seems the character arithmetic is what is asked for...

User INeal
by
3.5k points