## How to check if a given number is Fibonacci number?

Given a number \’n\’, how to check if n is a Fibonacci number. First few Fibonacci numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ..

## Python | Ways to remove a key from dictionary

Dictionary is used in manifold practical applications such as day-day programming, web development and AI/ML programming as well, making it a useful container overall. Hence, knowing shorthands for achieving different tasks related to dictionary usage always is a plus. This article deals with one such task of deleting a dictionary key-value pair from a dictionary.

## Python – Convert key-values list to flat dictionary

Sometimes, while working with Python dictionaries, we can have a problem in which we need to flatten dictionary of key-value pair pairing the equal index elements together. This can have utilities in web development and Data Science domain.

## Python | Sort Python Dictionaries by Key or Value

To sort a dictionary by value in Python you can use the sorted() function. Let’s try performing the above-mentioned tasks:

## Append Dictionary Keys and Values

Given a dictionary, perform append of keys followed by values in list. Input : test_dict = {“Gfg” : 1, “is” : 2, “Best” : 3}

## Python dictionary with keys having multiple inputs

How to create a dictionary where a key is formed using inputs? Let us consider an example where have an equation for three input variables, x, y, and z. We want to store values of equation for different input triplets.

## Print anagrams together in Python using List and Dictionary

Given an array of words, print all anagrams together ? Input : arr = [‘cat’, ‘dog’, ‘tac’, ‘god’, ‘act’]
Output : ‘cat tac act dog god’

## K’th Non-repeating Character in Python using List

Given a string and a number k, find the k-th non-repeating character in the string. Consider a large input string with lacs of characters and a small character set. How to find the character by only doing only one traversal of input string?

## Dictionary and counter in Python to find winner of election

Given an array of names of candidates in an election. A candidate name in the array represents a vote cast to the candidate. Print the name of candidates received Max vote. If there is tie, print a lexicographically smaller name.

## Check order of character in string using Ordered

Given an input string and a pattern, check if characters in the input string follows the same order as determined by characters present in the pattern. Assume there won’t be any duplicate characters in the pattern.