text_plain_output_1.png
s = '{} is a {} company'
p = s.format('Google', 'tech')
s2 = '{Company_name} is a {Company_type} company'
p2 = s2.format(Company_type='tech', Company_name='Google')
age = {'Anshuman': 22, 'Ayushman': 13, 'Bharati': 45}
a = 'profit is {:,}'
b = a.format(1234567890)

try:
    a = int(input('a='))
    b = int(input('b='))
    c = (a + b) / 2
except:

try:
    a = int(input('a='))
    b = int(input('b='))
    c = (a + b) / 2
except Exception as e:

try:
    a = int(input('a='))
    b = int(input('b='))
    c = (a + b) / 2
except Exception as e:

def add(a, b):
    return a + b
print(add(3, 4))
add1 = lambda p, q: p + q
print(add1(3, 4))
def compare(a, b):
    if a > b:
        return a
    else:
        return b
print(compare(1, 2))
compare1 = lambda p, q: p if p > q else q
print(compare1(2, 3))
print(compare1(2, 1))
def var(*a):
    print(a)
var(1, 2, 3, 4, 5)
var1 = lambda *a: print(a)
var1(1, 2, 3, 4, 5)