#!/usr/bin/python
# -*- coding: utf-8 -*-
# Reversing a list using reversed()
def Reverse(lst):
return [ele for ele in reversed(lst)]
# Driver Codelst = [
10,
11,
12,
13,
14,
15,
]
print Reverse(lst)
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Reversing a list using reversed()
def Reverse(lst):
return [ele for ele in reversed(lst)]
# Driver Codelst = [
10,
11,
12,
13,
14,
15,
]
print Reverse(lst)
List to string conversion in python
Python program to find the largest of three numbers
Python Program to display the Fibonacci sequence up to n-th term
Increment and decrement operator in python
Python program to accept a filename from the user and print the extension of that
Write a Python program to get the the volume of a sphere with radius 6
What is Break statement in python
Python program that accepts an integer (n) and computes the value of n+nn+nnn
How to add all number in list in python