Fycs 1
Fycs 1
Marks=13*1
a) // b) # c) /* d)’’’ ‘’’
a) + b) % c) $ d) *
a) 0 b) 1 c) 2 d) 3
a) \p b) \n c) \t d) \\
Marks= 6*1:
1) var[5]
2) var[2:6]
3) var[-3]
4) var[-8:-2]
5) var[5:]
6) var[:-2]
Marks=3*1:
list=[1,2,3,4,5] list1=[6,7]
1) print(list+list1)
2) list[2]=78
Print(list)
3)print(list*3)
Marks=5 each:
Q.15 take a number as input from user and check weather the number is divisible by 3 or not using
python if…else condition.
Q.16 what is variable? what are the rules for declaring a variable?
Q.20 write a python program to print all odd numbers between (1-10) either using for and while
loop.
Q.21 write a python program to print all even numbers between (1-10) either using for and while
loop.