


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



All in One Reference for Professionals & Learne
a = {1,2,3} b = {3,4,5} print(a & b) # Intersection print(a | b) # Union
squares = {x: x*x for x in range(5)}
square = lambda x: x*x print(square(5))
def calc(a, b): return a+b, a*b
print(f"Hello {self.name}") p = Person("SAGOR") p.greet()