Tag: Pair
Python : **kwargs | Functions that accept variable length key value pair as arguments
In this article we will discuss how to create functions in Python that can accept variable length arguments in key value pair format. Suppose we want to define a function that will print the provided students details. Details will be in key value pairs, where key represents the property name and value as property’s value. …
Python : **kwargs | Functions that accept variable length key value pair as argumentsRead More
Get first key-value pair from a Python Dictionary
In this article, we will discuss different ways to fetch first key-value pair from a dictionary. Then we will also learn about a way to get first N key-value pairs from a python dictionary. Table of Contents Get first key-value pair of dictionary in python using iter() & next(). Get first key-value pair of dictionary …
How to Add New User with Key Pair in AWS EC2
How to Add New User with Key Pair in AWS EC2. Learn how to create new user with new key pair and provide separate access to developers. Instead of using the default private key for all operations you can create additional users and share the corresponding private key to access the instance. In this guide …