Create Dictionary Python || Dictionaries || Python
In this we are going to see a basic program to create Dictionaries in Python Programming Language.



n=int(input("Input a number : "))
dict1 = dict()

for x in range(1,n+1):
    dict1[x]=x*x

print("The dictionary is : ",dict1)

# Coded By DHIRAJ SHELKE


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post