Instagram
youtube
Facebook

Ask Your Question?

This is a ChatBot! You can ask questions here.

Questions

How to store a file inside smart contract

There is no standard way to store a file inside a smart contract. However, there are some methods y…

What should be the roadmap on becoming splunk dev…

There is no one-size-fits-all answer to this question, as the roadmap for becoming a Splunk develop…

What is inheritance in python? and how many types…

Inheritance is a feature in object-oriented programming where a class can inherit the attributes an…

Write a program to convert two list into a dictio…

list1 = ['a', 'b', 'c']
list2 = [1, 2, 3]

dict1 = dict(zip(list1, list2…

Convert two list into a dictionary

list1 = ['a', 'b', 'c']
list2 = [1, 2, 3]

dict = {}
for i in range(len…

Change value of key in a nested dictionary

If you want to change the value of a key in a nested dictionary, you can use the following code:

Check if a value exits in a dictionary

d = {'a': 1, 'b': 2, 'c': 3}

if 'a' in d:
   print("a exists in d")
else:
   print("a does …