Install openshift 4 on aws

Before proceeding make sure you have a domain in aws(route 53) If you don't have visit https://console.aws.amazon.com/route53/ and get it. For now i have purchased redhatocp.com  [root@localhost tmp]# yum install awscli Note: Create IAM role with admin access [root@localhost tmp]# aws configure AWS Access Key ID [None]: AWS Secret Access Key [None]: Default region name … Continue reading Install openshift 4 on aws

Lambda function in python

Few key points about lambda function 1)Not defined by def keyword 2)Return expression not value 3)One-line function 4)Any number of arguments 5)Defined by using lambda keyword 6)Functions does not have any name 7)Can not access global variable syntax: lambda arguments:expression Ex: sum = (lambda x,y: x+y) print("addition of x and y is",sum(4,6)) o/p: addition of … Continue reading Lambda function in python

Global and local variables in python

Its all about the scope of a variable  variable defined at the top of all functions will have global scope. variables defined in function are called local variables & the life of that variable is  with in the function only . #### Global variable a = 10 #### funtion defination def display(): b=20 print("the value … Continue reading Global and local variables in python

Types of arguments in python user-defined function

Types of Arguments There are 4 types how we can pass arguments to functions in python 1) Default arguments 2) Required arguments 3) Keyword arguments 4) Variable number of arguments   Default arguments: Default values indicate that the function argument will take that value if no argument value is passed during function call. The default value … Continue reading Types of arguments in python user-defined function