Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. def expression_matter(a, b, c):
  2.    
  3.    
  4.     calc1 = [a * (b + c)]
  5.     calc2  = [a * b * c]
  6.     calc3 = [a + b * c]
  7.     calc4 = [(a + b) * c]
  8.  
  9.     highest_so_far = [highest for highest in calc1 for highest in calc2 for highest in calc3 for highest in calc4]
  10.  
  11.     print(highest_so_far)    
  12.    
  13. expression_matter(1, 2, 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement