I have a list like the following:
some_list = [
'fullname',
'John Kroes',
'email',
'johnkroes1978@example.com',
'password',
'3kKb5HYag'
]
How can I convert it to a dictionary like the one shown below?
some_dict = {
'fullname': 'John Kroes',
'email': 'johnkroes1978@example.com',
'password': '3kKb5HYag'
}
I tried to do it using nested loops, but I do not know how to write down the key first, and then its value.
I also made a temporary variable before the loop, after which I wrote down the current loop element in it and tried to use it as a value in the try.