Article 1 :-Global Scope
Categories: Python ||
A variable created in the main body of the Python code is a global variable and belongs to the global scope.Global variables are available from within any scope, global and local.ExampleA variable cre
Categories: Python ||
A variable created in the main body of the Python code is a global variable and belongs to the global scope.Global variables are available from within any scope, global and local.ExampleA variable cre
Categories: Python ||
A variable is only available from inside the region it is created. This is called scope.Local ScopeA variable created inside a function belongs to the local scope of that function, and can only be use
Categories: Python ||
An iterator is an object that contains a countable number of values.An iterator is an object that can be iterated upon, meaning that you can traverse through all the values.Technically, in Python, an
Categories: AWS(Amazon Web Services) ||
Announcing new Amazon EC2 C7g instances powered by AWS Graviton3 processors The latest generation compute optimized Amazon EC2 C7g instances are generally available. C7g instances are the fir
Categories: Python ||
An array is a special variable, which can hold more than one value at a time.If you have a list of items (a list of car names, for example), storing the cars in single variables could look like this:c
Categories: Python ||
Specify a Variable TypeThere may be times when you want to specify a type on to a variable. This can be done with casting. Python is an object-orientated language, and as such it uses classes to defin
Categories: Python ||
As of Python version 3.7, dictionaries are ordered. In Python 3.6 and earlier, dictionaries are unordered.When we say that dictionaries are ordered, it means that the items have a defined order, and t
Categories: Python ||
DictionaryDictionaries are used to store data values in key:value pairs.A dictionary is a collection which is ordered*, changeable and do not allow duplicates.As of Python version 3.7, dictionaries ar
Categories: Python ||
A lambda function is a small anonymous function.A lambda function can take any number of arguments, but can only have one expression.Syntaxlambda arguments : expressionThe expression is executed and t
Categories: AWS(Amazon Web Services) ||
Amazon CloudFront now provides TLS version and cipher suite in CloudFront-Viewer-TLS-header CloudFront now provides the CloudFront-Viewer-TLS header for use with origin request policies. Clou
Categories: AWS(Amazon Web Services) ||
Amazon Comprehend detects and redacts 14 new PII entity types across the U.S., U.K., Canada, and India Amazon Comprehend is a natural language processing (NLP) service that uses machine learn
Categories: AWS(Amazon Web Services) ||
Announcing Multi-Account Support for AWS Transit Gateway Network Manager AWS Transit Gateway Network Manager now supports centralized management and monitoring of global networks across multi
Categories: AWS(Amazon Web Services) ||
AWS AppSync introduces new simplified console experience to deploy generic real-time Pub/Sub APIs AWS AppSync is a fully managed service that enables developers to build digital experiences b
Categories: AWS(Amazon Web Services) ||
Amazon Managed Grafana introduces new API for creating Grafana API tokens and support for version 8.4 Amazon Managed Grafana now supports a new API for creating Grafana API tokens, as well as
Categories: AWS(Amazon Web Services) ||
Two new storage locations available for AWS DataSync Today, we are announcing the general availability of two additional storage locations for AWS DataSync, an online data movement service th
Categories: AWS(Amazon Web Services) ||
Amazon FSx for Lustre now supports root squash Amazon FSx for Lustre, a service that provides cost-effective, high-performance, and scalable file storage for compute workloads, now supports r
Categories: AWS(Amazon Web Services) ||
Announcing new AWS Wavelength Zones in Nashville and Tampa Today, we are announcing the availability of two new AWS Wavelength Zones on Verizon’s 5G Ultra Wideband network in Nashville,
Categories: AWS(Amazon Web Services) ||
AWS Config supports Amazon CloudWatch metrics Today, we are announcing the availability of Amazon CloudWatch metrics for usage monitoring on AWS Config. AWS Config tracks changes made to supp
Categories: AWS(Amazon Web Services) ||
Amazon EC2 Hpc6a instances now available in additional regions Starting today, Amazon Web Services (AWS) announces general availability of Amazon EC2 Hpc6a instances in additional regions. Th
Categories: AWS(Amazon Web Services) ||
AWS Backup Audit Manager adds support for Amazon S3 and AWS Storage Gateway AWS Backup Audit Manager now allows you to audit and report on the compliance of your data protection policies for
Categories: Angular || Angular ||
Introducing Amazon EC2 M6id instances Amazon Web Services (AWS) announces the general availability of new general purpose Amazon Elastic Compute Cloud (Amazon EC2) M6id instances. M6id instan
Categories: Angular || Angular ||
WS Launch Wizard now supports SQL Server deployments using Amazon FSx for NetApp ONTAP AWS Launch Wizard announces support for SQL Server Always On Failover Cluster Instances (FCI) with Amazo
Categories: Angular || Angular ||
Announcing preview of Amazon EC2 P4de GPU instances for ML training and HPC We are excited to announce preview of Amazon EC2 P4de instances, our latest GPU-based instances that provide the hi
Categories: Angular || Angular ||
Amazon Lightsail containers now supports deploying images from Amazon ECR private repositories Amazon Lightsail now supports creating deployments for Lightsail container services using the co
Categories: Angular || Angular ||
AWS Systems Manager announces support for port forwarding to remote hosts using Session Manager AWS Systems Manager announces support for port forwarding to remote hosts using Session Manager
Categories: Angular || Angular ||
The AWS Panorama Appliance is now available for purchase in India and Taiwan Customers in India and Taiwan can now purchase an AWS Panorama Appliance through the AWS Elemental purchase order
Categories: Python ||
To spawn another thread, you need to call following method available in thread module −thread.start_new_thread ( function, args[, kwargs] )This method call enables a fast and efficient way to create
Categories: Python ||
Running several threads is similar to running several different programs concurrently, but with the following benefits −Multiple threads within a process share the same data space with the main thre
Categories: Python ||
To send an e-mail with mixed content requires to set Content-type header to multipart/mixed. Then, text and attachment sections can be specified within boundaries.A boundary is started with two hyphen
Categories: Python ||
When you send a text message using Python, then all the content are treated as simple text. Even if you include HTML tags in a text message, it is displayed as simple text and HTML tags will not be fo
Categories: Python ||
Simple Mail Transfer Protocol (SMTP) is a protocol, which handles sending e-mail and routing e-mail between mail servers.Python provides smtplib module, which defines an SMTP client session object tha
Categories: Python ||
This was a quick start with Socket Programming. It is a vast subject. It is recommended to go through the following link to find more detail −1. Unix Socket Programming.2. Python Socket Library and
Categories: Python ||
A list of some important modules in Python Network/Internet programming.ProtocolCommon functionPort NoPython moduleHTTPWeb pages80httplib, urllib, xmlrpclibNNTPUsenet news119nntplibFTPFile transfers20
Categories: Python ||
Let us write a very simple client program which opens a connection to a given port 12345 and given host. This is very simple to create a socket client using Python's socket module function.The socket.
Categories: Python ||
To write Internet servers, we use the socket function available in socket module to create a socket object. A socket object is then used to call other functions to setup a socket server.Now
Categories: Python ||
Sr.No.Method & Description1. s.recv() - This method receives TCP message2. s.send() - This method transmits TCP message3. s.recvfrom() - This method receives UDP message4. s.sendto() - This method
Categories: Python ||
Sr.No.Method & Description1. s.bind() - This method binds address (hostname, port number pair) to socket.2. s.listen() - This method sets up and start TCP listener.3. s.accept() - This passively a
Categories: Python ||
To create a socket, you must use the socket.socket() function available in socket module, which has the general syntax −s = socket.socket (socket_family, socket_type, protocol=0)Here is the descript
Categories: Python ||
Sockets are the endpoints of a bidirectional communications channel. Sockets may communicate within a process, between processes on the same machine, or between processes on different continents.Socke
Categories: PHP ||
Python provides two levels of access to network services. At a low level, you can access the basic socket support in the underlying operating system, which allows you to implement clients and servers
Categories: Python ||
Except for control characters, (+ ? . * ^ $ ( ) [ ] { } | \), all characters match themselves. You can escape a control character by preceding it with a backslash.Following table lists the regular exp
Categories: Python ||
Regular expression literals may include an optional modifier to control various aspects of matching. The modifiers are specified as an optional flag. You can provide multiple modifiers using exclusive
Categories: Python ||
This function attempts to match RE pattern to string with optional flags.Here is the syntax for this function −re.match(pattern, string, flags=0)Here is the description of the parameters −
Categories: Python ||
A regular expression is a special sequence of characters that helps you match or find other strings or sets of strings, using a specialized syntax held in a pattern. Regular expressions are widely use
Categories: AWS(Amazon Web Services) ||
AWS AppSync introduces new simplified console experience to deploy generic real-time Pub/Sub APIs AWS AppSync is a fully managed service that enables developers to build digital experiences b
Categories: AWS(Amazon Web Services) ||
Amazon Managed Grafana introduces new API for creating Grafana API tokens and support for version 8.4 Amazon Managed Grafana now supports a new API for creating Grafana API tokens, as well as
Categories: AWS(Amazon Web Services) ||
Two new storage locations available for AWS DataSync Today, we are announcing the general availability of two additional storage locations for AWS DataSync, an online data movement service th
Categories: Python ||
Once a database connection is established, we are ready to create tables or records into the database tables using execute method of the created cursor.ExampleLet us create Database table EMPLOYEE −
Categories: Python ||
Before connecting to a MySQL database, make sure of the followings −You have created a database TESTDB.You have created a table EMPLOYEE in TESTDB.This table has fields FIRST_NAME, LAST_NAME, AGE, S
Categories: Python ||
MySQLdb is an interface for connecting to a MySQL database server from Python. It implements the Python Database API v2.0 and is built on top of the MySQL C API.How do I Install MySQLdb?Before proceed