Both lines generates the same result
from __future__ import print_function import json import os
li = [4,65,65,23,86,343,75,3,7,5,87,34,5 final_list = list(filter(lambda x: (x%2 print ("Using Lamba Function:")
#!/usr/bin/python import boto
import os def list_files_folders(path):
import os env = os.environ
import os print os.uname() # Don't use os.system('uname -a'), its j
def file_stats(path): f = open(path, 'r') lines = f.readlines()
def get_double(num): return num * 2
print "Welcome to python"
a=input("Enter a value:") if (a%2==0): print "The given number is even numb
a=input("Enter a value:") k=0 b=(a/2)+1
import sys x=len(sys.argv) a=[]
a = [1,43,98,5]#Dummy data for l in range(len(a)-1): if (a[l]>a[l+1]):
n=100 a=[10,20,30,40,50] b=[60,70,80,90]
n=input("Enter the constraint to print n m=input("Enter the maximum value to prin a=0
import random print random.uniform(10,500)
import random; z = [1,90,4,2] z = random.shuffle(z)
import requests req = requests.get("https://httpbin.org/
sample_dict = { "number": 1, "fruits": [ for key in sample_dict:
import numpy as np matrix = [[1,2,3], [4,5,6], [7,8,9]]
0 Comments
Please Login to Comment Here