Assume that x is a char variable has been declared and already given a value. Write an expression whose value is true if and only if x is a upper-case letter.
given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value in the array is unique. using hashmap
def batting(balls,runs): points=runs/2; if runs>50: points=points+5; if runs>=100: points=points+10; strikerate=runs/balls; if strikerate>=80 and strikerate<=100: points=points+2; elif strikerate>100: points=points+4; print(points)