Python Multiple Choice Questions
Suppose there is a list such that: l=[2,3,4]. If we want to print this list in reverse order, which of the following methods should be used?
A. reverse(l)
B. list(reverse[(l)])
C. reversed(l)
D. list(reversed(l))
Show Answer




DigitalOcean Referral Badge

© 2022-2023 Python Circle   Contact   Sponsor   Archive   Sitemap