ایک اور مثال
#lines is a string containing four lines
lines = '''this is first line1
this is second line2
here is another line3
this is last line4"
'''
d = { line.split()[-1]:line for line in lines.splitlines() }
print(d)
پہلی لائن میں ایک اسٹرنگ lines کی بنائی ہے جس میں چار لائنیں موجود...