Friday, February 1, 2019

Multiply List Elements

  • Problem Description

    Write Python Program to Multiply All the Items in a Dictionary.
  • CODING ARENA
  • d={'A':10,'B':10,'C':239}
    tot=1
    for i in d:
        tot=tot*d[i]
    print(tot)
  • Test Case 1

    Input (stdin)
    10 10 239
    
    
    Expected Output
    23900
  • Test Case 2

    Input (stdin)
    0
    
    
    Expected Output
    0

No comments:

Post a Comment