AppianVerse
AppianVerse
Home
Questions
Interviews
Certification ExamStress ManagerBlogAbout
QuestionsExpressions
#82
Question
Given input n, print {n, n-1.....1} eg. n = 5, output = {5, 4, 3, 2, 1}
A
Anonymous
December 17, 2025
54

Answer

First enumeration numbers and reversing it


Code

reverse(enumerate(ri!n) + 1)

Output

1766008791939-ckq69jgxr2.png

JuniorExpressions#coding

Continue Exploring

Previous

Question #81

Next

Question #83

Back to all questions
Loading comments...
AppianVerse

Built for Appian Developers

© 2026 AppianVerse. All rights reserved.

Disclaimer: AppianVerse is an independent community platform. We are not affiliated with, sponsored by, or endorsed by Appian Corporation. "Appian" is a registered trademark of Appian Corporation.

Join Telegram Channel
Terms & Conditions|Privacy Policy|Contact|Version 1.0.0