Q:

Converting two lists into a dictionary using built in list function?

I have been trying this for weeks! I tried this for weeks and all i get is nothing!
I searched internet and also the great STACK OVERFLOW but I couldn't find the one i need for!
Well normally if we try to change lists into dictionary we would get space between key and value!
for example: 
Output: 
The result dict is : {'Stack': '10'}

Well, I want the output as follows:
 The result dict is : {'Stack':'10'}

Well the zip function would give a space between them and cause me an error!
And this is the result I have to get:
Enter list elements separated by ,(Comma) for list1: Stack,Over,Flow
Enter list elements separated by ,(Comma) for list2: 111,222,333
{'Stack':'111','Over':'222','Flow':'333'}

and for the code I tried is: 
List_1 = input('Enter list elements separated by ,(Comma): ').split(',')
List_2 = input('Enter list elements separated by ,(Comma): ').split(',')
if len(List_1) == len(List_2) and len(List_1) != 0 and len(List_2) != 0 :
     dict = dict(zip(List_1, List_2))
     print(dict)
else:
    print('The two lists are of different lengths. Try again.')

A:

Since you want to be quite specific about the output I would do something like this:
def condensed_dict(data):
    output = []
    for item in data.items():
        output.append('%r:%r' % item)
    return '{%s}' % ''.join(output)

List_1 = input('Enter list elements separated by ,(Comma): ').split(',')
List_2 = input('Enter list elements separated by ,(Comma): ').split(',')

if List_1 and len(List_1) == len(List_2):
     dict = dict(zip(List_1, List_2))
     print(condensed_dict(dict))
else:
    print('The two lists are of different lengths. Try again.')

PS: I simplified your if statement a bit.

