Write a Python code to create a dictionary contai
Write a Python code to create a dictionary contai
their sales as values, respectively. Display the dictionary with the names of the products and also the
product having the highest sale.
high_item= max(dict)
print("Highest product is",high_item)
Write a Python code to assign three dictionaries, each containing the name, age, and salary of an
employee. The company has decided to increase the salary by 20% for the employees whose age is 55
years and above. Display the original and updated dictionaries.
empl=[empl1,empl2,empl3]
print(empl)
Write a Python code to assign two dictionaries, one containing states' names as values and the other
containing the corresponding capitals' names. Now, enter a state name and search for it in the
dictionary of states' names. If found, then display the state name along with its capital name,
otherwise, display "State name not found."
if sn in states:
print("The state is",sn,"it's capital is",states[sn])
else:
print("State not found")
Write a Python code to input a string and find the frequencies of each character of the string. Finally,
it returns as a dictionary with the key as the character and its value as its frequency in the given
string.
Write a Python code to create a dictionary containing English words corresponding to their suitable
keys. Display such words which start and end with the same letter. Also, display the frequency of all
such words.
print(same_letterwords)
for x in same_letterwords:
print(x,':',same_letterwords[x])
Write a Python code to assign a dictionary containing letters of the English alphabet as values along
with suitable keys. Find and display the number of vowels and consonants.
# Vowel list
vowels = ['a', 'e', 'i', 'o', 'u']
# Counters
vowel_count = 0
consonant_count = 0