Chap-2(A)

Mon 22 June 2026
name = "Athira"
age = 25
height = 154.94

print(name)
print(age)
print(height)
Athira
25
154.94
a, b, c = 10, 20,30
print (a)
print (b)
print(c)
10
20
30
x = 5
print (x)
x = "five"
print(x)
5
five
fav_int = 11
fav_float = 14.12
print(fav_int)
print(fav_float)
11
14.12
is_student = True
print(is_student)
True
result = None
if result is None:
    print("Empty")
Empty
list1 = [1,2,3,4,5]
set1 = {2,4,6,8,10}
tuple1 = (1,3,5,7,9)
dict1 = {"a":24, "b":62, "c":78, "d":50, "e":46}

print(list1)
print(set1)
print(tuple1)
print(dict1)
[1, 2, 3, 4, 5]
{2, 4, 6, 8, 10}
(1, 3, 5, 7, 9)
{'a': 24, 'b': 62, 'c': 78, 'd': 50, 'e': 46}
binary = 0b11111111
hexa = 0xFF
octal = 0o377
print(binary)
print(hexa)
print(octal)
255
255
255
sen = """hello myself athira
studying python 
from kactii academy"""
print(sen)
hello myself athira
studying python 
from kactii academy
p = 7
q = 4
sum_dig = p+q
dif_dig = p-q
prod_dig = p*q
quot_dig = p/q

print(sum_dig)
print(dif_dig)
print(prod_dig)
print(quot_dig)
11
3
28
1.75


Score: 10

Category: python-notes