137,343 views
20 votes
20 votes
What would the code be for this?

What would the code be for this?-example-1
User Ricardo Acras
by
2.7k points

1 Answer

23 votes
23 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 Remi Lemarchand
by
2.9k points