title: To Create Dictionary By Passing One OutPut Of One Value to Dictionary
body: <pre><code>Basic_Sal = (2750,2500,2900)// This is My Input
      for sal in Basic_Sal:
      if sal &lt;= 2750:
          HRA = (sal*15)/100
          DA = (sal*10)/100
          MA = (sal *5)/100
          Gross_Sal = HRA + DA + MA //Here I am calculating Gross_Sal
          print(Gross_Sal)
      else:
          HRA = (sal * 20) / 100
          DA = (sal * 10) / 100
          MA = (sal * 5) / 100
          Gross_Sal = HRA + DA + MA
          print(Gross_Sal)
  </code></pre>
  
  <p>// I should get O/P as Dictionary =(Basic_Sal : Gross_Sal)</p>
  
  <p>//Now I need to create Dictionary by passing Tuples and Gross_Sal, So that If I Call the Tuples I should get the Gross_salary directly. 
  // Can Anyone Help me this Without Using Function</p>