if and elif

0

if and elif

By Stone Hammer Jody Aufderhar at Dec 25 2020

0

if and elif

By Stone Hammer Jody Aufderhar at Dec 25 2020

0

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)

By Beginner Handsome Hoopoe at May 16 2020


Related code examples


Code examples by languages