Article 1 :-Function Arguments
Categories: Python ||
You can call a function by using the following types of formal arguments −Required argumentsKeyword argumentsDefault argumentsVariable-length arguments
Categories: Python ||
You can call a function by using the following types of formal arguments −Required argumentsKeyword argumentsDefault argumentsVariable-length arguments
Categories: PHP ||
All parameters (arguments) in the Python language are passed by reference. It means if you change what a parameter refers to within a function, the change also reflects back in the calling function. F
Categories: Python ||
Defining a function only gives it a name, specifies the parameters that are to be included in the function and structures the blocks of code.Once the basic structure of a function is finalized, you ca
Categories: Python ||
def printme( str ): "This prints a passed string into this function" print str return
Categories: Python ||
def functionname( parameters ):"function_docstring"function_suitereturn [expression]
Categories: Python ||
You can define functions to provide the required functionality. Here are simple rules to define a function in Python.Function blocks begin with the keyword def followed by the function name and parent
Categories: Python ||
A function is a block of organized, reusable code that is used to perform a single, related action. Functions provide better modularity for your application and a high degree of code reusing.As you al
Categories: Python ||
If the suite of an if clause consists only of a single line, it may go on the same line as the header statement.Here is an example of a one-line if clause −Program of Single Statement in python#!/us
Categories: Python ||
Decision making is anticipation of conditions occurring while execution of the program and specifying actions taken according to the conditions. Decision structures evaluate multiple expressions which
Categories: Python ||
The following table lists all operators from highest precedence to lowest.Operator & Description1. ** - Exponentiation (raise to the power)2. ~ + - - Complement, unary plus and minus (method
Categories: Python ||
Identity operators compare the memory locations of two objects. There are two Identity operators explained below −OperatorDescriptionExampleisEvaluates to true if the variables on either side of the
Categories: Python ||
Python’s membership operators test for membership in a sequence, such as strings, lists, or tuples. There are two membership operators as explained below −OperatorDescriptionExampleinEvaluates to
Categories: Python ||
There are following logical operators supported by Python language. Assume variable a holds 10 and variable b holds 20 thenOperatorDescriptionExampleand Logical ANDIf both the operands are true then c
Categories: Python ||
Bitwise operator works on bits and performs bit by bit operation. Assume if a = 60; and b = 13; Now in the binary format their values will be 0011 1100 and 0000 1101 respectively. Following table list
Categories: Python ||
Assume variable a holds 10 and variable b holds 20, then −Operators - Description - Example= Assigns values from right side operands to left side operandc = a + b assigns value of a + b into c+= Add
Categories: Python ||
These operators compare the values on either sides of them and decide the relation among them. They are also called Relational operators.Assume variable a holds 10 and variable b holds 20, then −Ope
Categories: Python ||
Operator - Description - Example+ Addition - Adds values on either side of the operator. - a + b = 60- Subtraction - Subtracts right hand operand from left hand operand.- a –
Categories: Python ||
There are many operators in the Python Language - Arithmetic OperatorsComparison (Relational) OperatorsAssignment OperatorsLogical OperatorsBitwise OperatorsMembership OperatorsIdentity Operators
Categories: AWS(Amazon Web Services) ||
Announcing data tiering for Amazon ElastiCache for Redis You can now use data tiering for Amazon ElastiCache for Redis as a lower cost way to scale your clusters to up to hundreds of terabytes of
Categories: AWS(Amazon Web Services) ||
AWS Single Sign-On now provides one-click login to Amazon EC2 instances running Microsoft Windows You can now enable one-click single sign-on to your Amazon Elastic Compute Cloud instances ru
Categories: AWS(Amazon Web Services) ||
Amazon Connect Customer Profiles now stores contact history at no charge to help personalize customer service Amazon Connect Customer Profiles now provides contact history and customer inform
Categories: AWS(Amazon Web Services) ||
Announcing AWS Fargate for Amazon ECS Powered by AWS Graviton2 Processors AWS Fargate for Amazon Elastic Container Service (Amazon ECS) powered by AWS Graviton2 Processors, is now generally a
Categories: AWS(Amazon Web Services) ||
Application Load Balancer and Network Load Balancer end-to-end IPv6 support Application Load Balancers and Network Load Balancers now support end-to-end connectivity with Internet Protocol ve
Categories: AWS(Amazon Web Services) ||
Amazon Lex launches support for Amazon Polly Neural Text-To-Speech (NTTS) voices for speech interactions Amazon Lex now supports Amazon Polly Neural Text-to-Speech (NTTS) voices for you
Categories: Python ||
Sometimes, you may need to perform conversions between the built-in types. To convert between types, you simply use the type name as a function.There are several built-in functions to perform conversi
Categories: Python ||
Python's dictionaries are kind of hash table type. They work like associative arrays or hashes found in Perl and consist of key-value pairs. A dictionary key can be almost any Python type, but are usu
Categories: Python ||
A tuple is another sequence data type that is similar to the list. A tuple consists of a number of values separated by commas. Unlike lists, however, tuples are enclosed within parentheses.The main di
Categories: Python ||
Lists are the most versatile of Python's compound data types. A list contains items separated by commas and enclosed within square brackets ([]). To some extent, lists are similar to arrays in C. One
Categories: Python ||
str = 'Hello Priya!'print str # Prints complete stringprint str[0] # Prints first character of the stringprint str[2:5] #
Categories: Python ||
Strings in Python are identified as a contiguous set of characters represented in the quotation marks. Python allows for either pairs of single or double quotes. Subsets of strings can be taken using
Categories: Python ||
A variable is a container for a value. It can be assigned a name, you can use it to refer to it later in the program. Based on the value assigned, the interpreter decides its data type. You can a
Categories: PHP ||
Python Comment is a programmer’s tool. We use them to explain the code, and the interpreter ignores them.You never know when a programmer may have to understand code written by another and make chan
Categories: Python ||
Unlike C++ or Java, Python does not use curly braces for indentation.Instead, Python mandates indentation. At this point, our inner monsters are laughing at the lazy programmers around us.>>>
Categories: Python ||
To declare strings in python, you may use single or double quotes. "Hello 'user'"Blank Lines Python StatementsThe interpreter simply ignores blank lines.
Categories: Python ||
You can easily put multiple statements in python on one line.For example a=7; print(a)Output7
Categories: Python ||
Apythton comments starts with the hash character, # , and it extendsto the end of the physical line. A # (Hash) character within a stringvalue is not seen as a comment. Commentsin Python arethe l
Categories: AWS(Amazon Web Services) ||
AQUA for Amazon Redshift launches in two additional AWS regions AQUA (Advanced Query Accelerator) for Amazon Redshift is now generally available in two additional AWS regions: Asia Pacific (M
Categories: AWS(Amazon Web Services) ||
AWS Amplify expands its Notifications category to include in-app messaging (Developer Preview) AWS Amplify is launching a developer preview of its expanded Notifications category for JavaScri
Categories: AWS(Amazon Web Services) ||
Amazon S3 Lifecycle further optimizes storage cost savings with new actions and filters You can now set Amazon S3 Lifecycle rules to limit the number of versions of an object to retain to ach
Categories: AWS(Amazon Web Services) ||
Amazon Transcribe now supports automatic language identification for streaming transcriptions Amazon Transcribe is an automatic speech recognition (ASR) service that makes it easy for you to
Categories: AWS(Amazon Web Services) ||
Elastic Beanstalk supports AWS Graviton-based Amazon EC2 instance types Elastic Beanstalk now supports AWS Graviton-based Amazon Elastic Compute Cloud (Amazon EC2) instance types. AWS Gravito
Categories: AWS(Amazon Web Services) ||
Amazon EC2 Auto Scaling Now Supports Predictive Scaling with Custom Metrics With Amazon EC2 Auto Scaling’s new predictive scaling policy, you can now use custom metrics to predict the E
Categories: AWS(Amazon Web Services) ||
Now execute python files and notebooks from another notebook in EMR Studio EMR Studio is an integrated development environment (IDE) that makes it easy for data scientists and data engineers
Categories: AWS(Amazon Web Services) ||
The Amazon Chime SDK now offers enhanced echo reduction The Amazon Chime SDK lets developers add real-time audio, video, screen-sharing, and messaging capabilities to their web or mobile appl
Categories: AWS(Amazon Web Services) ||
AWS Proton now supports Terraform Open Source for infrastructure provisioning AWS Proton now supports the definition of infrastructure in HashiCorp Configuration Language (HCL) and the provis
Categories: AWS(Amazon Web Services) ||
New AWS Managed Templates for IoT Jobs enable customers to deploy remote operations to IoT fleets with no code AWS Managed Templates for IoT Jobs, a new feature of AWS IoT Device Management n
Categories: AWS(Amazon Web Services) ||
Announcing AWS PrivateLink Support for Amazon Translate Amazon Translate is a neural machine translation service that delivers fast, high-quality, and affordable language translation. Amazon
Categories: Python ||
Python has five standard data types −NumbersStringListTupleDictionaryPython NumbersNumber data types store numeric values. Number objects are created when you assign a value to them. For example −
Categories: Python ||
Python allows you to assign a single value to several variables simultaneously. For examplea = b = c = 1Here, an integer object is created with the value 1, and all three variables are assigned t
Categories: Python ||
Python variables do not need explicit declaration to reserve memory space. The declaration happens automatically when you assign a value to a variable. The equal sign (=) is used to assign values