Binary operators Python

 
quiz_message DEF (Grade): 
  outcome = 'failed' IF Grade <50 the else 'passid'
  Print ( 'Grade', Grade, 'outcome', outcome)
Binary ternary operator in Python, write conditions can be simplified Analyzing

 

Guess you like

Origin www.cnblogs.com/zhichun/p/11441652.html