Answers for "print numbers in reverse order python"

1

print list in reverse order python

languages = ['C++', 'Python', 'Scratch']
#Method1:
languages.reverse()
print(languages)
#Method2:
lang = languages[::-1]
print(lang)
Posted by: Guest on January-24-2021
0

print reverse number

void printReverse(int n) {
  if (n < 1) return;
  cout << n << endl;
  printReverse(n - 1);
}

printReverse(10);  /// 10 9 8 7 6 5 4 3 2 1
Posted by: Guest on October-07-2020

Code answers related to "print numbers in reverse order python"

Python Answers by Framework

Browse Popular Code Answers by Language