Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- h = 1
- parallel_list=[]
- def create_function( a, b, c, d):
- eq1 = str(a)+"x+"+str(b)
- eq2 = str(c)+"x+"+str(d)
- global h
- couple = "couple"+str(h)
- print("Your " + couple + " has two functions: " + eq1 + " and " + eq2)
- h += 1
- if a is c:
- global parallel_list
- parallel_list.append(couple)
- #that was the code; now I will write some examples to test the code
- create_function(6,4,3,7)
- create_function(2,5,2,6)
- create_function(4,9,4,6)
- create_function(1,2,3,4)
- create_function(8,5,8,9)
- print(parallel_list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement